Problem: How to map unknown keys?
|
27th Nov, 2014, 03:07 AM
Post: #4
|
|||
|
|||
RE: How to map unknown keys?
look at
/usr/local/share/xbmc/system/keymaps/ in your installation. at the source code level the system level resolving is handled in xbmc/input/linux/LinuxInputDevices.cpp. if you check table keyMap, on the left is code returned from OS which is resolved into XBMC internal key code on the right. of course the key codes on left are OS specific but in this case linux provides the mapping in (/usr/)include/linux/input.h. looking into it 139 is KEY_MENU and indeed it is not defined in xbmc's xbmc/input/linux/LinuxInputDevices.cpp. if you would decide to try patching the code and recompile, then you would add into keyMap table this line: Code: { KEY_MENU , XBMCK_c }, or even directly with number Code: { 139 , XBMCK_c }, (in XBMC key"C" is key for display context menu.) Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
How to map unknown keys? - hrbi - 9th Nov, 2014, 11:29 PM
RE: How to map unknown keys? - irkam - 12th Nov, 2014, 03:24 AM
RE: How to map unknown keys? - hrbi - 13th Nov, 2014, 06:11 PM
RE: How to map unknown keys? - mk01 - 27th Nov, 2014 03:07 AM
RE: How to map unknown keys? - hrbi - 30th Nov, 2014, 08:49 PM
RE: How to map unknown keys? - mk01 - 6th Dec, 2014, 05:02 PM
|