Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <KeyHandler.h>
Public Member Functions | |
CKeyHandler (const std::string &keyName, ACTION::IActionListener *actionHandler, const IKeymap *keymap, IKeymapHandler *keymapHandler) | |
~CKeyHandler () override=default | |
bool | IsPressed () const override |
Return true if the key is "pressed" (has a magnitude greater than 0.5) | |
bool | OnDigitalMotion (bool bPressed, unsigned int holdTimeMs) override |
A key mapped to a digital feature has been pressed or released. | |
bool | OnAnalogMotion (float magnitude, unsigned int motionTimeMs) override |
Callback for keys mapped to analog features. | |
Public Member Functions inherited from KODI::KEYMAP::IKeyHandler | |
virtual | ~IKeyHandler ()=default |
CKeyHandler::CKeyHandler | ( | const std::string & | keyName, |
ACTION::IActionListener * | actionHandler, | ||
const IKeymap * | keymap, | ||
IKeymapHandler * | keymapHandler ) |
|
overridedefault |
|
inlineoverridevirtual |
Return true if the key is "pressed" (has a magnitude greater than 0.5)
Implements KODI::KEYMAP::IKeyHandler.
Callback for keys mapped to analog features.
magnitude | The amount of the analog action |
motionTimeMs | The time since the magnitude was 0 |
Implements KODI::KEYMAP::IKeyHandler.
A key mapped to a digital feature has been pressed or released.
bPressed | true if the key's button/axis is activated, false if deactivated |
holdTimeMs | The held time in ms for pressed buttons, or 0 for released |
Implements KODI::KEYMAP::IKeyHandler.