Kodi Community Forum

Full Version: usb pc remote control button stopped working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
I have a usb pc remote control which I use with kodi. It has a "media center" button which is a compination of "alt+super+enter". I was using this button to toggle fullscreen in kodi by this entry in keyboard.xml file:
<return mod="alt">Togglefullscreen</return>
This worked fine until the latest libinput update(v 1.9.3-1). After this update it behaves differently. Need to long press the button to toggle fullscreen, but it triggers some other command also(sometimes the menu action, sometimes something else).
With debugging enabled in kodi, I get this info when this button pressed:
Code:
06:50:54.887 T:140630531172416   DEBUG: Keyboard: scancode: 0x24, sym: 0x000d, unicode: 0x000d, modifier: 0x0
06:50:54.887 T:140630531172416   DEBUG: Keyboard: scancode: 0x40, sym: 0x0134, unicode: 0x0000, modifier: 0x100
06:50:54.887 T:140630531172416   DEBUG: OnKey: alt-leftalt (0x4f0d4) pressed, action is
06:50:54.887 T:140630531172416   DEBUG: Keyboard: scancode: 0x85, sym: 0x0137, unicode: 0x0000, modifier: 0x100
06:50:54.888 T:140630531172416   DEBUG: OnKey: alt-leftwindows (0x4f0d6) pressed, action is
06:50:55.029 T:140630531172416   DEBUG: Keyboard: scancode: 0x24, sym: 0x000d, unicode: 0x0000, modifier: 0x100
06:50:55.030 T:140630531172416   DEBUG: Keyboard: scancode: 0x40, sym: 0x0134, unicode: 0x0000, modifier: 0x0
06:50:55.030 T:140630531172416   DEBUG: Keyboard: scancode: 0x85, sym: 0x0137, unicode: 0x0000, modifier: 0x0
It seems that is recognized as alt+windows in kodi.If I use key id and change the entry in keyboard.xml like this:
<key id="0x4f0d6">Togglefullscreen</key>
working as only alt no matter which of the two ids I use(0x4f0d4 or  0x4f0d6). This way the action works, but also it moves the mouse cursor every time i use it.
How to use it as key combination with both ids? I tried using mod="alt", or mod="windows", but it doesn't work at all with those. Is possible?
EDIT:
There is a difference between 0x4f0d4 and 0x4f0d6. with 0x4f0d6 doesn' t recognized as alt(if I press alt on keyboard the action doesn't trigger). But again it moves the mouse cursor