Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
KODI::KEYMAP::IKeymap Class Referenceabstract

Interface for mapping buttons to Kodi actions. More...

#include <IKeymap.h>

Inheritance diagram for KODI::KEYMAP::IKeymap:
KODI::KEYMAP::CKeymap

Public Member Functions

virtual ~IKeymap ()=default
 
virtual std::string ControllerID () const =0
 The controller ID.
 
virtual const IKeymapEnvironmentEnvironment () const =0
 Access properties of the keymapping environment.
 
virtual const KeymapActionGroupGetActions (const std::string &keyName) const =0
 Get the actions for a given key name.
 

Detailed Description

Interface for mapping buttons to Kodi actions.

See also
CJoystickUtils::MakeKeyName

Constructor & Destructor Documentation

◆ ~IKeymap()

virtual KODI::KEYMAP::IKeymap::~IKeymap ( )
virtualdefault

Member Function Documentation

◆ ControllerID()

virtual std::string KODI::KEYMAP::IKeymap::ControllerID ( ) const
pure virtual

The controller ID.

This is required because key names are specific to each controller

Implemented in KODI::KEYMAP::CKeymap.

◆ Environment()

virtual const IKeymapEnvironment * KODI::KEYMAP::IKeymap::Environment ( ) const
pure virtual

Access properties of the keymapping environment.

Implemented in KODI::KEYMAP::CKeymap.

◆ GetActions()

virtual const KeymapActionGroup & KODI::KEYMAP::IKeymap::GetActions ( const std::string & keyName) const
pure virtual

Get the actions for a given key name.

Parameters
keyNameThe key name created by CJoystickUtils::MakeKeyName()
Returns
A list of actions associated with the given key

Implemented in KODI::KEYMAP::CKeymap.


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