Kodi Community Forum

Full Version: Some media keys not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have Kodi 16.0 running on Win 8.0 x64. I bought a new 2.4GHz keyboard/mouse (Rio mini i8+) and everything works except for 3 media keys: VolumeUp, VolumeDown, and VolumeMute. For the other media keys, Kodi (per debug log) shows that it is getting an APPCOMMAND, but for these 3 keys it just logs the keypress. The input from these keys "fall through" Kodi and instead are handled by the shell and do change the system audio settings. I experimented with a program "hotkeycontrol" which was advertised as being able to remap media keys (my idea was to remap them to the default Kodi keyboard keys) but it doesn't appear that that program (or other remappers I have tried) actually work on the media keys. I did notice that hotkeycontrol registered the keypresses as VolumeUp, VolumeDown, and VolumeMute, so whatever means that program uses does work. I guess I could use a hotkey to intercept the keypress before it gets to Kodi and send the hotkey to Kodi, but it seems like Kodi should be able to see the key itself without having to do this. Here is a sequence of keypresses in debug log:

VolumeUp, Volumedown, VolumeMute, VolumeMute, VolumeUp

Code:
12:13:16 T:4484   DEBUG: Keyboard: scancode: 0x00, sym: 0x0000, unicode: 0x0000, modifier: 0x0
12:13:16 T:4484   DEBUG: CInputManager::OnKey: long-0 (0x100f200) pressed, action is
12:13:20 T:4484   DEBUG: Keyboard: scancode: 0x00, sym: 0x0000, unicode: 0x0000, modifier: 0x0
12:13:20 T:4484   DEBUG: CInputManager::OnKey: long-0 (0x100f200) pressed, action is
12:13:21 T:1892   DEBUG: CMMNotificationClient::OnPropertyValueChanged: Changed device property of {0.0.0.00000000}.{6bf7eada-4d98-46b3-b0d0-882603c9dd40} is {9855c4cd-df8c-449c-a181-8191b68bd06c}#0
12:13:24 T:4484   DEBUG: Keyboard: scancode: 0x00, sym: 0x0000, unicode: 0x0000, modifier: 0x0
12:13:24 T:4484   DEBUG: CInputManager::OnKey: long-0 (0x100f200) pressed, action is
12:13:28 T:4484   DEBUG: Keyboard: scancode: 0x00, sym: 0x0000, unicode: 0x0000, modifier: 0x0
12:13:28 T:4484   DEBUG: CInputManager::OnKey: long-0 (0x100f200) pressed, action is
12:13:31 T:4484   DEBUG: Keyboard: scancode: 0x00, sym: 0x0000, unicode: 0x0000, modifier: 0x0
12:13:31 T:4484   DEBUG: CInputManager::OnKey: long-0 (0x100f200) pressed, action is

Debug log

http://xbmclogs.com/pna8hp1x6

scott s.
.