2010-01-18, 03:30
I'm trying to get Air Mouse Pro (AMP) working with XBMC. It seems to be a fantastic little program for just $2. My only problem is getting keymapping working. I've been reading forum posts and the wiki re: keymap.xml, but I think I'm missing a few things.
I'm on XP running the public 9.11 build.
When I try to map the space key, I get these entries in my log:
Standard letters work fine - this is the entry for "c":
My understanding is that I can put an entry in keymap.xml like:
I guess in theory, I could just map every function i'm interested in to a regular letter, but ideally I'd like to either use the existing keymappings or add entries to the existing settings, since I still navigate with the keyboard sometimes.
I'm on XP running the public 9.11 build.
When I try to map the space key, I get these entries in my log:
Quote:AMP:It's similar for the home key:
15:23:43 T:3944 M: 97730560 DEBUG: SDLKeyboard: scancode: 1, sym: 27, unicode: 32, modifier: 0
15:23:43 T:3944 M: 97730560 DEBUG: CApplication::OnKey: 61467 pressed, action is 10
Keyboard:
15:14:40 T:2440 M: 89481216 DEBUG: SDLKeyboard: scancode: 57, sym: 32, unicode: 32, modifier: 0
15:14:40 T:2440 M: 89567232 DEBUG: CApplication::OnKey: 61472 pressed, action is 12
Quote:AMP:
15:23:51 T:3944 M: 91066368 DEBUG: SDLKeyboard: scancode: 1, sym: 27, unicode: 0, modifier: 0
15:23:51 T:3944 M: 91082752 DEBUG: CApplication::OnKey: 61467 pressed, action is 10
Keyboard:
15:28:26 T:3804 M: 91795456 DEBUG: SDLKeyboard: scancode: 71, sym: 278, unicode: 0, modifier: 0
15:28:26 T:3804 M: 91791360 DEBUG: CApplication::OnKey: 61476 pressed, action is 159
Standard letters work fine - this is the entry for "c":
Quote:AMP:
15:23:57 T:3944 M: 97542144 DEBUG: SDLKeyboard: scancode: 1, sym: 27, unicode: 99, modifier: 0
15:23:57 T:3944 M: 97542144 DEBUG: CApplication::OnKey: 61507 pressed, action is 117
Keyboard:
15:28:27 T:3804 M: 92426240 DEBUG: SDLKeyboard: scancode: 46, sym: 99, unicode: 99, modifier: 0
15:28:27 T:3804 M: 92426240 DEBUG: CApplication::OnKey: 61507 pressed, action is 117
My understanding is that I can put an entry in keymap.xml like:
Quote:<key id="61476">XBMC.ActivateWindow(Home)</key>Where the key id is the "OnKey" entry reported in the log. My problem is that space, home, and other special keys don't seem to be resolving to different OnKey codes. Is there any other way I could map to these in keymap.xml?
I guess in theory, I could just map every function i'm interested in to a regular letter, but ideally I'd like to either use the existing keymappings or add entries to the existing settings, since I still navigate with the keyboard sometimes.