To use this air mouse with XBMC, I override default key bindings with a custom XML file given below. This file is placed in my home folder : ~/.xbmc/userdata/keymaps/airmouse.xml
I did managed to bind almost all keys except the right button below arrows. xev says its Super_L, but I did not manage to find how to bind it (either with id 65515 not Super_L). I disabled mouse move / drag because it was bothering me during selection, however, mouse left click is hijacked to simulate enter key behavior and mouse right click is bound to esc key behavior.
The behavior obtained seems awesome to me. Hope you’ll enjoy it too.
<!-- Air Mouse : Tooploo T2 Wireless Gyroscope Air Mouse --> <keymap> <global> <keyboard> <volume_down>VolumeDown</volume_down> <volume_up>VolumeUp</volume_up> <left>Left</left> <right>Right</right> <up>Up</up> <down>Down</down> <home>XBMC.ActivateWindow(Home)</home> <play_pause>Pause</play_pause> <pageup>FullScreen</pageup> <pagedown>Info</pagedown> <volume_mute>Mute</volume_mute> </keyboard> <mouse> <leftclick>Select</leftclick> <rightclick>PreviousMenu</rightclick> <mousedrag>noop</mousedrag> <mousemove>noop</mousemove> </mouse> </global> <FullscreenVideo> <mouse> <leftclick>Pause</leftclick> </mouse> </FullscreenVideo> </keymap>