2019-01-07, 03:27
I'm using Kodi Leia RC4 on the latest CoreELEC build on my S905 box, with a universal remote control configured to act as an MCE remote, which is working fine for regular out-of-the-box remote keypresses.
However I want to configure the separate Play and Pause buttons on the remote have discrete actions (i.e. play for play only and pause for pause only, rather than both doing the same play/pause toggle function).
I've checked via ir-keytable and the two buttons are generating correct separate scancodes, which are triggering as KEY_PLAY and KEY_PAUSE events:
MiniM8SII-CoreELEC:~ # ir-keytable -t
Testing events. Please, press CTRL-C to abort.
79922.337860: event type EV_MSC(0x04): scancode = 0x800f0416
79922.337860: event type EV_KEY(0x01) key_down: KEY_PLAY(0x00cf)
79922.337860: event type EV_SYN(0x00).
79922.490324: event type EV_MSC(0x04): scancode = 0x800f0416
79922.490324: event type EV_SYN(0x00).
79922.740133: event type EV_KEY(0x01) key_up: KEY_PLAY(0x00cf)
79922.740133: event type EV_SYN(0x00).
79924.583546: event type EV_MSC(0x04): scancode = 0x800f0418
79924.583546: event type EV_KEY(0x01) key_down: KEY_PAUSE(0x0077)
79924.583546: event type EV_SYN(0x00).
79924.740211: event type EV_MSC(0x04): scancode = 0x800f0418
79924.740211: event type EV_SYN(0x00).
79924.990113: event type EV_KEY(0x01) key_up: KEY_PAUSE(0x0077)
79924.990113: event type EV_SYN(0x00).
However in Kodi, both of these buttons seem to be getting mapped to the same id (230) so all that happens when I use the Kodi Keymap Editor addon to generate a gen.xmp file for the separate Play or Pause functions is:
<keyboard><key id="230">play</key></keyboard>
<keyboard><key id="230">pause</key></keyboard>
Any idea how I can get Kodi to see the separated KEY_PLAY and KEY_PAUSE button events so I can map them as I want?
Andre
However I want to configure the separate Play and Pause buttons on the remote have discrete actions (i.e. play for play only and pause for pause only, rather than both doing the same play/pause toggle function).
I've checked via ir-keytable and the two buttons are generating correct separate scancodes, which are triggering as KEY_PLAY and KEY_PAUSE events:
MiniM8SII-CoreELEC:~ # ir-keytable -t
Testing events. Please, press CTRL-C to abort.
79922.337860: event type EV_MSC(0x04): scancode = 0x800f0416
79922.337860: event type EV_KEY(0x01) key_down: KEY_PLAY(0x00cf)
79922.337860: event type EV_SYN(0x00).
79922.490324: event type EV_MSC(0x04): scancode = 0x800f0416
79922.490324: event type EV_SYN(0x00).
79922.740133: event type EV_KEY(0x01) key_up: KEY_PLAY(0x00cf)
79922.740133: event type EV_SYN(0x00).
79924.583546: event type EV_MSC(0x04): scancode = 0x800f0418
79924.583546: event type EV_KEY(0x01) key_down: KEY_PAUSE(0x0077)
79924.583546: event type EV_SYN(0x00).
79924.740211: event type EV_MSC(0x04): scancode = 0x800f0418
79924.740211: event type EV_SYN(0x00).
79924.990113: event type EV_KEY(0x01) key_up: KEY_PAUSE(0x0077)
79924.990113: event type EV_SYN(0x00).
However in Kodi, both of these buttons seem to be getting mapped to the same id (230) so all that happens when I use the Kodi Keymap Editor addon to generate a gen.xmp file for the separate Play or Pause functions is:
<keyboard><key id="230">play</key></keyboard>
<keyboard><key id="230">pause</key></keyboard>
Any idea how I can get Kodi to see the separated KEY_PLAY and KEY_PAUSE button events so I can map them as I want?
Andre