![]() |
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Handles keyboard events for game agent functionality. More...
#include <AgentKeyboard.h>
Public Member Functions | |
CAgentKeyboard (PERIPHERALS::PeripheralPtr peripheral) | |
~CAgentKeyboard () override | |
void | Initialize () |
void | Deinitialize () |
void | ClearButtonState () |
float | GetActivation () const |
ControllerPtr | Appearance () const |
std::string | ControllerID () const override |
The add-on ID of the keyboard's controller profile. | |
bool | HasKey (const KEYBOARD::KeyName &key) const override |
Return true if the input handler accepts the given key. | |
bool | OnKeyPress (const KEYBOARD::KeyName &key, KEYBOARD::Modifier mod, uint32_t unicode) override |
A key has been pressed. | |
void | OnKeyRelease (const KEYBOARD::KeyName &key, KEYBOARD::Modifier mod, uint32_t unicode) override |
A key has been released. | |
![]() | |
virtual | ~IKeyboardInputHandler ()=default |
Handles keyboard events for game agent functionality.
CAgentKeyboard::CAgentKeyboard | ( | PERIPHERALS::PeripheralPtr | peripheral | ) |
|
overridedefault |
|
inline |
void CAgentKeyboard::ClearButtonState | ( | ) |
|
overridevirtual |
The add-on ID of the keyboard's controller profile.
Implements KODI::KEYBOARD::IKeyboardInputHandler.
void CAgentKeyboard::Deinitialize | ( | ) |
float CAgentKeyboard::GetActivation | ( | ) | const |
|
overridevirtual |
Return true if the input handler accepts the given key.
key | A key belonging to the controller specified by ControllerID() |
Implements KODI::KEYBOARD::IKeyboardInputHandler.
void CAgentKeyboard::Initialize | ( | ) |
|
overridevirtual |
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 |
Implements KODI::KEYBOARD::IKeyboardInputHandler.
|
overridevirtual |
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 |
Implements KODI::KEYBOARD::IKeyboardInputHandler.