Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
it's in xbmc/ ;P
contextmenu get filled from the GetContextButtons() function and handled in the OnContextButton() function. these are overloaded in all the media windows.
Posts: 485
Joined: Jan 2009
Reputation:
8
cheers I'll have a look into it, see if my rusty limited knowledge is any good :p
Posts: 485
Joined: Jan 2009
Reputation:
8
right I've got the function setup i now need to know where keyboard input is managed so i can map the function to a key, had a look but couldn't work it out based on file names lol
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
you can define an action in Key.h. you then handle the action in the relevant media window. to use it, you map the action to a human name in ButtonTranslator.cpp. you then do the final mapping in e.g. keyboard.xml