Kozz wrote:Just got my xbox ir dongle working too using a usb adapter by following the method posted by Xphazer
here
BUT I wanted to re-map a few keys like 3 & 6 as volume up/down and 0 as queue to playlist,
it was kind of unclear what to edit when I started my search but in the end I managed to figure it out
First I highly recommend installing the nano text editor to make life easier when editing text files over ssh
To install this add-on you must do so from the Add-on Manager from within XBMC by going to:
Settings
Add-ons
Get add-ons
OpenELEC Mediacenter OS Add-ons
Program Add-ons
Add-on:nano
Install
Now you can start to add the custom keymap
1)Login to openelec as root over ssh (for info on this see here
http://wiki.openelec.tv/index.php?title ... use_SSH.3F)
2)Now you need to copy the Lircmap.xml from the read-only system to the xbmc userdata folder with the following command
Code: Select all
cp /usr/share/xbmc/system/Lircmap.xml /storage/.xbmc/userdata
3) Now you can edit this Lircmap.xml with nano, it will be loaded from this location when xbmc starts so you dont need to move it back to its original location.
Code: Select all
nano /storage/.xbmc/userdata/Lircmap.xml
use the arrows on your keyboard to scroll down to the section <remote device="XboxDVDDongle">

You can now edit the functions between the <> brackets, you can substitute any xbmc actions they are listed
here
for example I set <volumeplus>3</volumeplus> and <volumeminus>6</volumeminus> the actions in the xbmc wiki start with upper case but work as lowercase in openelec
Once you have edited the buttons to the functions you want in nano you need to write the changes with Ctrl+o (that's letter o not zero)
then you can exit nano with Ctrl+x
The changes you make should take effect immediately and work right away, but if they don't try to restart the Pi with reboot