Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
CKeymap Class Reference

#include <Keymap.h>

Inheritance diagram for CKeymap:
IKeymap

Public Member Functions

 CKeymap (std::shared_ptr< const IWindowKeymap > keymap, const IKeymapEnvironment *environment)
 
virtual std::string ControllerID () const override
 The controller ID. More...
 
virtual const IKeymapEnvironmentEnvironment () const override
 Access properties of the keymapping environment. More...
 
const KODI::JOYSTICK::KeymapActionGroupGetActions (const std::string &keyName) const override
 Get the actions for a given key name. More...
 
- Public Member Functions inherited from IKeymap
virtual ~IKeymap ()=default
 

Constructor & Destructor Documentation

◆ CKeymap()

CKeymap::CKeymap ( std::shared_ptr< const IWindowKeymap keymap,
const IKeymapEnvironment environment 
)

Member Function Documentation

◆ ControllerID()

std::string CKeymap::ControllerID ( ) const
overridevirtual

The controller ID.

This is required because key names are specific to each controller

Implements IKeymap.

◆ Environment()

virtual const IKeymapEnvironment * CKeymap::Environment ( ) const
inlineoverridevirtual

Access properties of the keymapping environment.

Implements IKeymap.

◆ GetActions()

const JOYSTICK::KeymapActionGroup & CKeymap::GetActions ( const std::string &  keyName) const
overridevirtual

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

Implements IKeymap.


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