I have a remote control from a TwinHan DVB-T card, which registeres itself to the linux input layer, ie. if I press "4" on the remote control it looks like I pressed "4" on the keyboard.
Just FYI I've built an event input device plugin for the CVS trunk/2.0. Right now its only been used with pvr-x50 and nexus remotes (with the dvb-ttpci driver). The dvb drivers ( av7110_ir at least) don't use the key remapping interface given by the input layer so these ones may require some more code so we can remap keys using their /proc interface.
Because there are no cursor keys on this remote control, I added the following lines to my "local_conf.py" to emulate some cursor keys:
KEYMAP[key.K_4] = 'LEFT' KEYMAP[key.K_6] = 'RIGHT' KEYMAP[key.K_2] = 'UP' KEYMAP[key.K_8] = 'DOWN'
Pressing "2" and "8" works flawlessly, both on the remote control and on the keyboard: I can move the selection in the main menu.
But pressing "4" and "6" doesn't give me the desired result in some conditions. For example, if I try to quite "freevo" and the dialog appears which says "Are you sure you want to quit?" then I cannot use "4" and "6" neither on the remote nor on the keyboard to move the selection.
Only pressing the cursor left/right keys on the keyboard moves the selection.
In my desparation, I exchanged the mapping, so that 4/6 are up/down and 2/8 are left/right. I wanted to make sure that there are no conflicts regarding the default keymap. But now I can use 4/6 to move through the selections, but I still cannot move left right using 2/8.
What am I doing wrong?
Nothing's jumping out at me here at all. :(
Can you set DEBUG = 1 in local_conf.py and check the logs? Look for a message saying something like no eventhandler for event 'LEFT'.
-Rob
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Freevo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-users
