Kodi Community Forum

Full Version: Help with remapping keyboard (remote??) commands.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ok I bought a cheap and nasty remote control from amazon because my old one broke ( http://www.amazon.co.uk/gp/product/B0055...UTF8&psc=1 )

I believe this one emulates a keyboard (and mouse) rather than being a full blow remote, thats fine but some buttons dont work.

Code:
12:14:13 T:140014374958976   DEBUG: Keyboard: scancode: 0x16, sym: 0x0008, unicode: 0x0008, modifier: 0x0
12:14:13 T:140014374958976   DEBUG: OnKey: backspace (0xf008) pressed, action is Back
12:14:13 T:140014374958976   DEBUG: CGUIWindowManager::PreviousWindow: Deactivate
12:14:13 T:140014374958976   DEBUG: Keyboard: scancode: 0x87, sym: 0x013f, unicode: 0x0000, modifier: 0x0
12:14:13 T:140014374958976   DEBUG: OnKey: menu (0xf0d8) pressed, action is ContextMenu
12:14:15 T:140014374958976   DEBUG: Keyboard: scancode: 0x25, sym: 0x0132, unicode: 0x0000, modifier: 0x40
12:14:15 T:140014374958976   DEBUG: OnKey: ctrl-leftctrl (0x1f0d0) pressed, action is
12:14:15 T:140014374958976   DEBUG: Keyboard: scancode: 0x32, sym: 0x0130, unicode: 0x0000, modifier: 0x41
12:14:15 T:140014374958976   DEBUG: OnKey: ctrl-shift-leftshift (0x3f0d2) pressed, action is
12:14:15 T:140014374958976   DEBUG: Keyboard: scancode: 0x38, sym: 0x0042, unicode: 0x0002, modifier: 0x41
12:14:15 T:140014374958976   DEBUG: OnKey: ctrl-shift-160 (0x3f0a0) pressed, action is
12:14:16 T:140014374958976   DEBUG: Keyboard: scancode: 0xac, sym: 0x0155, unicode: 0x0000, modifier: 0x0
12:14:16 T:140014374958976   DEBUG: OnKey: play_pause (0xf0bd) pressed, action is Pause
12:14:16 T:140014374958976   DEBUG: Keyboard: scancode: 0xd8, sym: 0x0157, unicode: 0x0000, modifier: 0x0
12:14:16 T:140014374958976   DEBUG: OnKey: fastforward (0xf0c6) pressed, action is FastForward
12:14:17 T:140014374958976   DEBUG: Keyboard: scancode: 0xae, sym: 0x00b2, unicode: 0x0000, modifier: 0x0
12:14:17 T:140014374958976   DEBUG: OnKey: stop (0xf0bc) pressed, action is Stop

As you can see if I press stop it Stop's ( obviously)
( 12:14:17 T:140014374958976 DEBUG: OnKey: stop (0xf0bc) pressed, action is Stop )

And most basic things work, but I would for example like to get " OnKey: ctrl-shift-leftshift (0x3f0d2) pressed, action is " working, as onthe remote its the rewind button.

i tried editing (well creating) keyboard.xml and adding.

<keymap>
<global>
<keyboard>
<ctrl-shift-leftshift>Info</ctrl-shift-leftshift>
</global>
</keyboard>
</keymap>

(I also tried editing that in /usr/share/xbmc/system/keymaps/keyboard.xml

bit it still says " action is "rather than "action is Info"

For example.

Any ideas where I am going wrong ? for a fiver this remotes as good as can be expected, but it would be great if I could customize it a little.

Full debug if its needed - http://xbmclogs.com/show.php?id=60316
Interesting, I am going to have a look, I have not seen that before.

cheers.

thank you, that was perfect and so simple.