kodi
Public Member Functions | List of all members
KODI::KEYMAP::CWindowKeymap Class Reference
Inheritance diagram for KODI::KEYMAP::CWindowKeymap:
Inheritance graph
[legend]
Collaboration diagram for KODI::KEYMAP::CWindowKeymap:
Collaboration graph
[legend]

Public Member Functions

 CWindowKeymap (const std::string &controllerId)
 
std::string ControllerID () const override
 The controller ID. More...
 
void MapAction (int windowId, const std::string &keyName, KeymapAction action) override
 Add an action to the keymap for a given key name and window ID. More...
 
const KeymapActionGroupGetActions (int windowId, const std::string &keyName) const override
 Get the actions for a given key name and window ID. More...
 

Member Function Documentation

◆ ControllerID()

std::string KODI::KEYMAP::CWindowKeymap::ControllerID ( ) const
inlineoverridevirtual

The controller ID.

This is required because key names are specific to each controller

Implements KODI::KEYMAP::IWindowKeymap.

◆ GetActions()

const KeymapActionGroup & CWindowKeymap::GetActions ( int  windowId,
const std::string &  keyName 
) const
overridevirtual

Get the actions for a given key name and window ID.

Parameters
windowIdThe window ID to look up
keyNameThe key name created by CJoystickUtils::MakeKeyName()
Returns
A list of actions associated with the given key for the given window

Implements KODI::KEYMAP::IWindowKeymap.

◆ MapAction()

void CWindowKeymap::MapAction ( int  windowId,
const std::string &  keyName,
KeymapAction  action 
)
overridevirtual

Add an action to the keymap for a given key name and window ID.

Parameters
windowIdThe window ID to look up
keyNameThe key name created by CJoystickUtils::MakeKeyName()
actionThe action to map

Implements KODI::KEYMAP::IWindowKeymap.


The documentation for this class was generated from the following files: