|
kodi
|
Interface for handling input events for keyboards. More...
#include <IKeyboardInputHandler.h>

Public Member Functions | |
| virtual std::string | ControllerID () const =0 |
| The add-on ID of the keyboard's controller profile. More... | |
| virtual bool | HasKey (const KeyName &key) const =0 |
| Return true if the input handler accepts the given key. More... | |
| virtual bool | OnKeyPress (const KeyName &key, Modifier mod, uint32_t unicode)=0 |
| A key has been pressed. More... | |
| virtual void | OnKeyRelease (const KeyName &key, Modifier mod, uint32_t unicode)=0 |
| A key has been released. More... | |
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.
|
pure virtual |
The add-on ID of the keyboard's controller profile.
Implemented in KODI::GAME::CGameClientKeyboard, and KODI::GAME::CAgentKeyboard.
|
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::CGameClientKeyboard, and KODI::GAME::CAgentKeyboard.
|
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::CGameClientKeyboard, and KODI::GAME::CAgentKeyboard.
|
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::CGameClientKeyboard, and KODI::GAME::CAgentKeyboard.
1.8.13