-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Beal wrote:
| Sorry for the delay in responding, Jonathan.
|
| I have looked at event.py however, I don't want to add to that file
| unless it's completely necessary.  Not everyone will be using my plugin
| and I don't feel there is a need to clutter an already large file with
| ACTUAL code.  Let me explain that in better detail...
|
| The plugin I am working on remaps the remote control in order to
| control all audio outputs, i.e. Front, Surround, Center, LFE (Bass) and
| Side.  Currently, in 6-channel mode, the plugin maps the Surround
| controls to keys 1 & 4, Center controls to keys 2 & 5, and LFE controls
| to key 3 & 6.  In 8-channel mode, the remote needs to be remapped to
| use keys 3 & 6 for the Side channels and keys 8 & 0 for the LFE
| channel.  In 4-channel mode, the control key for Center, LFE and Side
| get dropped leaving only Surround on keys 1 & 4.  I've added actual
| code to my local_conf.py to handle this remapping based on the number
| of channels.  I'd really like to move this out to the plugin itself and
| add the necessary Event mappings via the plugin.  The difficulty is
| that I can't seem to get this to work.

May be you want to use the plug-in event mechanism, for example
IDENTIFY_MEDIA in plugins/rom_drives.py. This is where a plug-in when
active can generate events.

|
| Any additional thoughts or ideas are appreciated.
|

There are quite a few examples, which can be found by grepping for
plugin.event in the source.

Does this help?

Duncan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHq21mNi6l+Xvys44RAiFEAJ0YkZUzmL1ezRBJwEeUWUcmUbWVEQCfc0at
zn7F9j7XLFbnqGQGHlvqwak=
=GChE
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to