Page 1 of 1

Kodi/OpenElec/RPi (XMBC): Map numpad as remote control

Posted: Fri Feb 27, 2015 3:23 pm
by ^rooker
Work in progress!

Example mapping for debugging:
(taken from eoan's posting on Kodi forums)

Code: Select all

<keymap>
  <global>
    <keyboard>
      <!-- ... constant key mappings here -->
      <forwardslash>Notification(Key, forwardslash, 1)</forwardslash>
      <minus>Notification(Key, minus, 1)</minus>
      <plus>Notification(Key, plus, 1)</plus>
      <Enter>Notification(Key, Enter, 1)</Enter>
      <star>Notification(Key, Star, 1)</star>
      <!-- ... number key mappings here -->
      <numpadzero>Notification(Key, 0, 1)</numpadzero>
      <numpadone>Notification(Key, 1, 1)</numpadone>
      <numpadtwo>Notification(Key, 2, 1)</numpadtwo>
      <numpadthree>Notification(Key, 3, 1)</numpadthree>
      <numpadfour>Notification(Key, 4, 1)</numpadfour>
      <numpadfive>Notification(Key, 5, 1)</numpadfive>
      <numpadsix>Notification(Key, 6, 1)</numpadsix>
      <numpadseven>Notification(Key, 7, 1)</numpadseven>
      <numpadeight>Notification(Key, 8, 1)</numpadeight>
      <numpadnine>Notification(Key, 9, 1)</numpadnine>
      <period>Notification(Key, period, 1)</period>
      <!-- ... function key mappings here -->
      <KP_Up>Notification(Key, Up, 1)</KP_Up>
      <KP_Down>Notification(Key, Down, 1)</KP_Down>
      <KP_Left>Notification(Key, Left, 1)</KP_Left>
      <KP_Right>Notification(Key, Right, 1)</KP_Right>
      <KP_Home>Notification(Key, Home, 1)</KP_Home>
      <KP_End>Notification(Key, End, 1)</KP_End>
      <KP_Prior>Notification(Key, Prior, 1)</KP_Prior>
      <KP_Next>Notification(Key, Next, 1)</KP_Next>
      <KP_Begin>Notification(Key, Begin, 1)</KP_Begin>
      <KP_Insert>Notification(Key, Insert, 1)</KP_Insert>
      <KP_Delete>Notification(Key, Delete, 1)</KP_Delete>
    </keyboard>
  </global>
</keymap>

Links: