Air Mouse Pro to control XBMC?
#1
Question 
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:
Quote:AMP:
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
It's similar for the home key:
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.
Reply
#2
Grab mceremote.zip from xbmcmce.sourceforge.net and use the ShowKey applet to see exactly what your remote is sending. ShowKey will even show you what needs to be put in the keymap.

JR
Reply
#3
Thanks for the help. I got your utility, but the weird thing is that it seems to resolve the key entries to the correct keys; for instance, the home key gets resolved as:
Quote:<home>Put action here</home>
Is this an issue with XBMC or AMP?
Reply
#4
When you get done, please write a DIY. I tried to get my iphone to controlmy mouse, but i couldn't do it. I got it to work on windows.
Use mythicalLibrarian to make a library out of your MythTV files. Leave the recording to MythTV and use XBMC as your library.
Installation and Instructions:http://wiki.xbmc.org/index.php?title=MythicalLibrarian
Technical Support:http://forum.xbmc.org/showthread.php?tid=65644
[url=http://forum.xda-developers.com/showthread.php?tid=1081892][/url]
Reply
#5
outleradam Wrote:When you get done, please write a DIY. I tried to get my iphone to controlmy mouse, but i couldn't do it. I got it to work on windows.

Yeah, I plan to. If I can get things to work natively, I plan to publish the XBMC key mapping I make to the Air Mouse Pro community definitions. Supposedly those get pushed out to the software automatically. If not, I'd like to come up with code blocks that you could copy and paste into the different sections of keymap.xml.

I should point out that right now, the touchpad/air mouse portion of this software works great in XBMC and out. If you've got an iphone, I'd highly recommend getting this software; check out the video at Air Mouse Pro site.

So far, it's been quite useful. Over the weekend, I worked out a system using the AMP software that swaps between XBMC, Firefox (for Netflix), and Hulu Desktop. I'm working on system using an SSB like prism for Netflix, possibly combined with something like this for control. If I get all that working, I'll write it up too.
Reply
#6
Hi supagold,

Did you ever get this working? I use AirMouse Pro and I totally agree that it is a superb iPhone/iPad tool (it is absolutely brilliant if you ever use PowerPoint presentations - it's the best remote you would ever want when you are speaking in public!). I also use it with XBMC and, while it works OK, primarily through the trackpad, it would be great if there was an XBMC controller for AirMouse that provided functions like play, pause, et cetera (as there is for VLC Player).
Reply

Logout Mark Read Team Forum Stats Members Help
Air Mouse Pro to control XBMC?0