![]() |
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Interface for handling input events for keyboards. More...
#include <IKeyboardInputHandler.h>
Public Member Functions | |
virtual | ~IKeyboardInputHandler ()=default |
virtual std::string | ControllerID () const =0 |
The add-on ID of the keyboard's controller profile. | |
virtual bool | HasKey (const KeyName &key) const =0 |
Return true if the input handler accepts the given key. | |
virtual bool | OnKeyPress (const KeyName &key, Modifier mod, uint32_t unicode)=0 |
A key has been pressed. | |
virtual void | OnKeyRelease (const KeyName &key, Modifier mod, uint32_t unicode)=0 |
A key has been released. | |
Interface for handling input events for keyboards.
Input events are an abstraction over driver events. Keys are identified by the name defined in the keyboard's controller profile.
|
virtualdefault |
|
pure virtual |
The add-on ID of the keyboard's controller profile.
Implemented in KODI::GAME::CAgentKeyboard, and KODI::GAME::CGameClientKeyboard.
|
pure virtual |
Return true if the input handler accepts the given key.
key | A key belonging to the controller specified by ControllerID() |
Implemented in KODI::GAME::CAgentKeyboard, and KODI::GAME::CGameClientKeyboard.
|
pure virtual |
A key has been pressed.
key | A key belonging to the controller specified by ControllerID() |
mod | A combination of modifiers |
unicode | The unicode value associated with the key, or 0 if unknown |
Implemented in KODI::GAME::CAgentKeyboard, and KODI::GAME::CGameClientKeyboard.
|
pure virtual |
A key has been released.
key | A key belonging to the controller specified by ControllerID() |
mod | A combination of modifiers |
unicode | The unicode value associated with the key, or 0 if unknown |
Implemented in KODI::GAME::CAgentKeyboard, and KODI::GAME::CGameClientKeyboard.