Forum
Assigning remote KEYs to XBMC functions - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Configuration (/forum-17.html)
+--- Thread: Assigning remote KEYs to XBMC functions (/thread-468.html)



Assigning remote KEYs to XBMC functions - degauss5 - 18th Feb, 2013 04:39 AM

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


RE: Assigning remote KEYs to XBMC functions - CurlyMo - 18th Feb, 2013 04:56 AM

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.


RE: Assigning remote KEYs to XBMC functions - degauss5 - 18th Feb, 2013 06:36 AM

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!!


RE: Assigning remote KEYs to XBMC functions - CurlyMo - 18th Feb, 2013 06:52 AM

Check /usr/local/share/xbmc/system/keymaps/remote.xml for the correct name of the contextmenu


RE: Assigning remote KEYs to XBMC functions - degauss5 - 20th Feb, 2013 05:38 AM

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


RE: Assigning remote KEYs to XBMC functions - CurlyMo - 20th Feb, 2013 07:22 AM

@degauss5, can you open a request for this so we include it in Beta 1.


RE: Assigning remote KEYs to XBMC functions - degauss5 - 20th Feb, 2013 06:37 PM

How can I do that???


RE: Assigning remote KEYs to XBMC functions - Koenkk - 20th Feb, 2013 06:42 PM

https://github.com/xbianonpi/xbian/issues/new


RE: Assigning remote KEYs to XBMC functions - CurlyMo - 21st Feb, 2013 07:43 AM

Committed https://github.com/xbianonpi/xbian/commit/1e2df3dca16ffa443ecdb44585d1a2787006bf8d