Kodi Community Forum

Full Version: Mapping remote keys
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Finally got it working! I think the issue was duplicate entries causing conflicts.

Although I got NextSubtitle to work, I still couldn't get ShowSubtitles (ie. turn them off/on) to work. <pageplus>ShowSubtitles</pageplus> under keymap/global/remote doesn't work. I'm using pageplus button as the ID as I'm not using that key elsewhere.

After further headscratching, I noticed that there are separate sections for different views in XMBC, so you can map a button to do one thing in full screen view, and something else in menus. I had to create another entry in keymap.xml (below) under FullscreenVideo to get ShowSubtitles to work. This might not be the most elegant way to do it, but it works Smile

Thank you so much for all your help, really appreciate it!

full keymap.xml under userdata:

Code:
<keymap>
  <global>
    <remote>
      <pageplus>ShowSubtitles</pageplus>
      <subtitle>NextSubtitle</subtitle>
    </remote>
  </global>
  <FullscreenVideo>
    <remote>
      <pageplus>ShowSubtitles</pageplus>
    </remote>
  </FullscreenVideo>
</keymap>

relevant Lircmap.xml snippet:
Code:
<lircmap>
    <remote device="mceusb">
        <pageplus>BB2</pageplus>
        <subtitle>BB3</subtitle>
Pages: 1 2