Forum

Full Version: Assigning remote KEYs to XBMC functions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello:

When I use my MICROSOFT MCE USB remote with the "irw" terminal command all the keys are recognized,

irw
http://pastebin.com/3Yw5zuzE

but in XBMC there are some keys that are not working:
- NUMERIC KEYS (in search boxes)
- LETTER KEYS (in search boxes)

Also, there is no key for the ContextMenu.

I suppose that there is one file with the the assignation of the XBMC actions with the remote keys.. Could be "remote.xml" or "keyboard.xml" in
/usr/local/share/xbmc/system/keymaps ????

Knowing the name of a recognized key, i.e. "KEY_EPG", how can I assign that key to the show ContextMenu action???

Thanks
Code:
cp /usr/local/share/xbmc/system/Lircmap.xml /home/xbian/.xbmc/userdata/

Now edit the /home/xbian/.xbmc/userdata/Lircmap.xml and add the command you need under:

Code:
<remote device="linux-input-layer">
        <altname>cx23885_remote</altname>
        <altname>devinput</altname>
                <left>KEY_LEFT</left>
                <right>KEY_RIGHT</right>

If you're done, share the file with us. Then we can add it by default.
A big step forward!!!

I've edited the "/home/xbian/.xbmc/userdata/Lircmap.xml" and in the next section:

<remote device="linux-input-layer">
<altname>cx23885_remote</altname>
<altname>devinput</altname>
...

The numbers keys were "KEY_1" instead "KEY_NUMERIC_1" that shows "irw command", so I change all the number names, restart XBMC and it works great...

Here is the "/home/xbian/.xbmc/userdata/Lircmap.xml":
http://pastebin.com/UT25gGd8

In that file, there is no "context menu" key. I've tried adding:
<ContextMenu>KEY_EPG</ContextMenu>

But it doesn't work.. Any idea??

Thanks a lot for your support!!
Check /usr/local/share/xbmc/system/keymaps/remote.xml for the correct name of the contextmenu
Ok, the assigned name for the "ContextMenu" action in in "/usr/local/share/xbmc/system/keymaps/remote.xml" was "title", so to launch the context menu with the remote key "GUIDE" I've added to "/home/xbian/.xbmc/userdata/Lircmap.xml":

<title>KEY_EPG</title>

To show the menu DVD when playing a video with the remote key "DVD MENU", I've changed in "/home/xbian/.xbmc/userdata/Lircmap.xml":

<menu>KEY_DVD</menu>

The modified file is this:
http://pastebin.com/VXKEi5JM

Restarting XBIAN all working 100%...

Thanks
@degauss5, can you open a request for this so we include it in Beta 1.
How can I do that???
Reference URL's