PDA

View Full Version : How to map a remote key to an another key/scancode ?



mwahal
December 21st, 2009, 05:06 PM
Hi,

I'm running Boxee 0.9.14.6992 on SL 10.6.2 x64. I have an old USB remote which I got with a tv tuner card. I used USB Overdrive and I can use most of the keys of the remote. My problem is the ESCAPE key. My remote has an EXIT button but no back.

I tried modifying the /Applications/Boxee.app/Contents/Resources/Boxee/system/Lircmap.xml and Keymap.xml files. I changed BACK to EXIT but still nothing. Do I need to copy these files into my $HOME//Library/Application\ Support/BOXEE/UserData/ directory ?

Anyway, I started Boxee with logging support on. This is what I get when I press the EXIT key on my keyboard.



14:54:32 T:60998912 M:1190117376 DEBUG: SDLKeyboard: scancode: 3, sym: 102, unicode: 102, modifier: 0
14:54:32 T:60998912 M:1190117376 DEBUG: CApplication::OnKey - [key=61510][window=10000][action=0]
14:54:32 T:60998912 M:1190117376 DEBUG: OnKey: 61510 pressed, action is 0


I somehow needs this to be translated into this.



15:03:32 T:60998912 M:1187368960 DEBUG: SDLKeyboard: scancode: 53, sym: 27, unicode: 27, modifier: 0
15:03:32 T:60998912 M:1187368960 DEBUG: CApplication::OnKey - [key=61467][window=10000][action=18]
15:03:32 T:60998912 M:1187368960 DEBUG: OnKey: 61467 pressed, action is 10


Basically, remap the scancode from 3 to 53, sym from 102 to 27 and unicode from 102 to 27.

Another thing, I see lots of remote profiles listed under both xml files. How do I know which profile is being used for my remote ?

Thanks
Mudit

WizBang
June 19th, 2010, 01:09 PM
Hi,

Did you ever get your problem resolved?

I have a very similar issue on my set up and want to remap one of the remote control buttons to another function, but cannot see where I can do this.