Mapping Numpad arrows
#1
Hi,

I´m using my mobile as bluetooth remote control. The arrows the mobile send to PC are the keys 2,4,6,8 from the numpad.
I´ve tried to edit the file keyboard.xml and included these lines in the global section, but nothing happens.
OS is Windows 7 x64
What should I do?

<numpadtwo>down</numpadtwo>
<numpadfour>left</numpadfour>
<numpadsix>right</numpadsix>
<numpadeight>up</numpadeight>
Reply
#2
Grab mceremote.zip from http://xbmcmce.sourceforge.net/ and use the Showkey applet to see what your mobile is sending to your PC.

JR
Reply
#3
This is what appears when I presse the keys UP, DOWN, LEFT, RIGHT in my remote.

<up>Notification(Key, up, 3)</up>
<down>Notification(Key, down, 3)</down>
<left>Notification(Key, left, 3)</left>
<right>Notification(Key, right, 3)</right>
Reply
#4
ltlasmar Wrote:This is what appears when I presse the keys UP, DOWN, LEFT, RIGHT in my remote.

<up>Notification(Key, up, 3)</up>
<down>Notification(Key, down, 3)</down>
<left>Notification(Key, left, 3)</left>
<right>Notification(Key, right, 3)</right>

It looks as if the remote is just sending the arrow keys just like the up, down, etc keys on the keyboard. In that case it should work without any modifications to keyboard.xml.

Run XBMC, togging on (Settings, System, Debugging) then press the up button on the remote three times. Now turn debug logging off and close XBMC. There will be a log file in %appdata%\xbmc\xbmc.log. Pop this on pastebin.com and post the link here, and we should be able to tell what key XBMC things is being pressed.

Incidentally there's no special reason to press the up button three timers. It just makes it easier to find in the debug log since we can look for three identical keypresses. It can be a bit hard to tell what key is what otherwise.

JR
Reply
#5
jhsrennie Wrote:It looks as if the remote is just sending the arrow keys just like the up, down, etc keys on the keyboard. In that case it should work without any modifications to keyboard.xml.

Run XBMC, togging on (Settings, System, Debugging) then press the up button on the remote three times. Now turn debug logging off and close XBMC. There will be a log file in %appdata%\xbmc\xbmc.log. Pop this on pastebin.com and post the link here, and we should be able to tell what key XBMC things is being pressed.

Incidentally there's no special reason to press the up button three timers. It just makes it easier to find in the debug log since we can look for three identical keypresses. It can be a bit hard to tell what key is what otherwise.

JR

I've done what you said. The full log is in http://pastebin.com/rWvTpAbh
These lines are what debug shows when I push UP on the remote

377.17:50:45 T:4932 M:2775994368 DEBUG: SDLKeyboard: scancode: 72, sym: 264, unicode: 0, modifier: 0
378.17:50:45 T:4932 M:2775994368 DEBUG: CApplication::OnKey: 61544 pressed, action is 66

Thanks for helping.
Reply
#6
Hmm, key 61544 is VK_NUMPAD8 but action 66 is REMOTE_8.

Try using:

<eight>up</eight>

and see if the up button on the remote now works.

JR
Reply
#7
Nothing happens. Do I need to change anything in XBMC to make it read the keyboard.xml?
I posted the file keyboard.xml here http://pastebin.com/PLbxiX4H.
Reply
#8
xml malformed. open it in firefox, it tells you exactly where at.

as a general hint;

Code:
<key id="foo">something</foo>
NOT
Code:
<key id="foo">something</key id="foo">
Reply
#9
As a general rule you shouldn't modify the system\keymaps\keyboard.xml. It's a big complicated file and any changes you make will be overwritten if you upgrade to a later build. Instead create a keyboard.xml in %appdata%\xbmc\userdata\keymaps and add just the mappings you want to (re)define.

JR
Reply
#10
So its better for me reinstall xbmc to restore the original keyboard.xml and make the modifications in the user folder?
Reply
#11
ltlasmar Wrote:So its better for me reinstall xbmc to restore the original keyboard.xml and make the modifications in the user folder?

No need to reinstall, just grab the master keyboard.xml from http://trac.xbmc.org/export/32773/trunk/...yboard.xml and overwrite the one you've modified.

If you grab mceremote.zip from http://xbmcmce.sourceforge.net/ I've just updated it with a batch file to copy the sample keyboard.xml to your userdata folder.

JR
Reply
#12
Wooowww

now it works like a charm!

Thanks a lot!
Reply
#13
Sad 
Hi,

I hope i can get some help in here.
I have a Zalman HD160XT case and i am not able to get the navigation buttons at the front panel to work in XBMC.
I am currently running win 7 64 in my HTPC. Is there anyone out there who have had the same problem.
I am not an advanced user so i need all help i can get.
Reply

Logout Mark Read Team Forum Stats Members Help
Mapping Numpad arrows0