Re-mapping remote control keys
#1
I have a problem remapping the keys on my remote control. Mos work and most like I expect to, but I would like to map some keys and remap others.

I am using OpenElec 3.0.6 with an Amulet Devices MCE remote control.

My problem keys are highlighted in red. Neither "RestartApp" or "Reboot" works.

Also, just to test, I am trying to switch the functionality of the "KEY_INFO" and "KEY_DELETE". but "KEY_INFO" still brings up the Information screen, as it did before I added to the xml's below.

All other remappings works just fine.

I have created/changed Userdata\keymaps\remote.xml to ...
Quote:
<keymap>
<global>
<remote>
<guide>XBMC.ActivateWindowAndFocus(MyPVR, 31,0, 10,0)</guide>
<livetv>XBMC.ActivateWindowAndFocus(MyPVR, 32,0, 11,0)</livetv>
<left>StepBack</left>
<right>StepForward</right>
<up>BigStepForward</up>
<down>BigStepBack</down>
<back>SmallStepBack</back>
<restart>RestartApp</restart>
<dvd>Reboot</dvd>

<remote>
</global>
<home>
<remote>
<info>XBMC.ActivateWindow(Weather)</info>
<clear>XBMC.ActivateWindow(SystemInfo)</clear>

<hash>XBMC.ActivateWindow(Settings)</hash>
</remote>
</home></keymap>[/

And \Userdata\Lircmap.xml to...

Quote:
<lircmap>
<remote device="devinput">
<!-- global -->
<guide>KEY_EPG</guide>
<livetv>KEY_TUNER</livetv>
<left>KEY_LEFT</left>
<right>KEY_RIGHT</right>
<up>KEY_UP</up>
<down>KEY_DOWN</down>
<back>KEY_EXIT</back>
<restart>KEY_RED</restart>
<dvd>KEY_DVD</dvd>

<!-- home -->
<info>KEY_INFO</info>
<clear>KEY_DELETE</clear>

<hash>KEY_NUMERIC_POUND</hash>
</remote>
</lircmap>

Any help appriciated Big Grin
ThMoJe
Reply
#2
Solved it.
- Regarding Restart/Reboot, have to use XBMC.RestartApp()
- The others started working as I got the above right.

Also I found that some of the xml tag names used in lircmap, can not be changed. Like <guide>KEY_EPG</guide>, can not be changed to <tvguide>KEY_EPG</tvguide>. It will work in some places, but it looks like there are some hardcoded references in XBMC, or the skin, that does not pick up the new tag name.
Reply
#3
I prefer this way to restart/reboot xbnc in openelec, it will work even if xbmc freezes.:

http://wiki.openelec.tv/index.php?title=...m_a_Remote
Reply

Logout Mark Read Team Forum Stats Members Help
Re-mapping remote control keys0