Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Interface for mapping buttons to Kodi actions for specific windows. More...
#include <IKeymap.h>
Public Member Functions | |
virtual | ~IWindowKeymap ()=default |
virtual std::string | ControllerID () const =0 |
The controller ID. | |
virtual void | MapAction (int windowId, const std::string &keyName, KeymapAction action)=0 |
Add an action to the keymap for a given key name and window ID. | |
virtual const KeymapActionGroup & | GetActions (int windowId, const std::string &keyName) const =0 |
Get the actions for a given key name and window ID. | |
Interface for mapping buttons to Kodi actions for specific windows.
|
virtualdefault |
|
pure virtual |
The controller ID.
This is required because key names are specific to each controller
Implemented in KODI::KEYMAP::CWindowKeymap.
|
pure virtual |
Get the actions for a given key name and window ID.
windowId | The window ID to look up |
keyName | The key name created by CJoystickUtils::MakeKeyName() |
Implemented in KODI::KEYMAP::CWindowKeymap.
|
pure virtual |
Add an action to the keymap for a given key name and window ID.
windowId | The window ID to look up |
keyName | The key name created by CJoystickUtils::MakeKeyName() |
action | The action to map |
Implemented in KODI::KEYMAP::CWindowKeymap.