Skip to content

Instantly share code, notes, and snippets.

@nachomezzadra
Last active October 21, 2018 09:13
Show Gist options
  • Save nachomezzadra/36c086b10b72fec2ff0a to your computer and use it in GitHub Desktop.
Save nachomezzadra/36c086b10b72fec2ff0a to your computer and use it in GitHub Desktop.
XBMC remote.xml mapping for LG TV HDMI CEC (42LS5700-SB)
<keymap>
<global>
<remote>
<skipminus>XBMC.Action(reloadkeymaps)</skipminus>
<stop>XBMC.ActivateWindow(Home)</stop>
<blue>ContextMenu</blue>
</remote>
</global>
<home>
<remote>
<red>XBMC.ActivateWindow(VideoLibrary,TvShowTitles)</red>
<green>XBMC.ActivateWindow(VideoLibrary,MovieTitles)</green>
<yellow>XBMC.ActivateWindow(MyMusic)</yellow>
</remote>
</home>
<FullScreenVideo>
<remote>
<play>Play</play>
<pause>Pause</pause>
<stop>stop</stop>
<skipplus>FastForward</skipplus>
<skipminus>Rewind</skipminus>
<blue>Info</blue>
<yellow>NextSubtitle</yellow>
<green>subtitledelay</green>
</remote>
</FullScreenVideo>
</keymap>
@nachomezzadra
Copy link
Author

Copy file into /home/pi/.xbmc/userdata/keymaps and restart XBMC.

  • Red button mapped to TV Shows
  • Green button mapped to Movies
  • Yellow button mapped to My Music
  • Blue button mapped to Context Menu (i.e. mouse right click)
  • Rewind button mapped to "Reload keymaps file" so there is no need to restart XBMC in order to apply new key map changes.

More info
http://kodi.wiki/view/Opening_Windows_and_Dialogs
http://kodi.wiki/view/Keyboard.xml
https://github.com/xbmc/xbmc/blob/master/xbmc/input/ButtonTranslator.cpp

For OSMC
Copy file into /home/osmc/.kodi/userdata/keymaps and restart OSMC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment