2016-08-20, 06:19
Hi all, i'm hoping this is the correct place to post. I recently put together a RPi3 running OSMC and Kodi 16.1. I'm using the Lynec C120 remote, however the Home and Menu/context keys on the remote don't operate as expected.
I've checked the log to see what corresponds to the key presses i want to re-map:
13:39:27 53.341717 T:1956320176 WARNING: CLinuxInputDevice::RelEvent: Unknown rel event code: 9
13:39:27 53.421650 T:1956320176 WARNING: Previous line repeats 5 times.
13:39:27 53.421730 T:1956320176 DEBUG: ProcessMouse: trying mouse action rightclick
AND
13:39:32 58.986740 T:1956320176 WARNING: CLinuxInputDevice::RelEvent: Unknown rel event code: 14
13:39:32 58.986935 T:1956320176 DEBUG: Keyboard: scancode: 0x7f, sym: 0x0137, unicode: 0x0000, modifier: 0x0
13:39:32 58.987076 T:1956320176 DEBUG: OnKey: leftwindows (0xf0d6) pressed, action is
Now i added a keyboard.xml file with the following in the hope it will remap those keys to the operations i want. It's currently not working (logs are still coming up the same as above). Keymap.xml file i put in the userdata folder contains the following:
<keymap>
<global>
<keyboard>
<key id='9'>Menu</key>
<key id='14'>ContextMenu</key>
</keyboard>
</global>
</keymap>
I'm obviously not getting the correct codes and probably not even using the correct XML elements and attributes. And guidance would be greatly appreciated!
Cheers...
I've checked the log to see what corresponds to the key presses i want to re-map:
13:39:27 53.341717 T:1956320176 WARNING: CLinuxInputDevice::RelEvent: Unknown rel event code: 9
13:39:27 53.421650 T:1956320176 WARNING: Previous line repeats 5 times.
13:39:27 53.421730 T:1956320176 DEBUG: ProcessMouse: trying mouse action rightclick
AND
13:39:32 58.986740 T:1956320176 WARNING: CLinuxInputDevice::RelEvent: Unknown rel event code: 14
13:39:32 58.986935 T:1956320176 DEBUG: Keyboard: scancode: 0x7f, sym: 0x0137, unicode: 0x0000, modifier: 0x0
13:39:32 58.987076 T:1956320176 DEBUG: OnKey: leftwindows (0xf0d6) pressed, action is
Now i added a keyboard.xml file with the following in the hope it will remap those keys to the operations i want. It's currently not working (logs are still coming up the same as above). Keymap.xml file i put in the userdata folder contains the following:
<keymap>
<global>
<keyboard>
<key id='9'>Menu</key>
<key id='14'>ContextMenu</key>
</keyboard>
</global>
</keymap>
I'm obviously not getting the correct codes and probably not even using the correct XML elements and attributes. And guidance would be greatly appreciated!
Cheers...