Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[PROBLEM] How to map unknown keys?
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Problem: How to map unknown keys?
27th Nov, 2014, 03:07 AM
Post: #4
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
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
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


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

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 26th May, 2025, 04:15 AM Powered By MyBB, © 2002-2025 MyBB Group.