Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Interface for handling keymap keys. More...
#include <IKeyHandler.h>
Public Member Functions | |
virtual | ~IKeyHandler ()=default |
virtual bool | IsPressed () const =0 |
Return true if the key is "pressed" (has a magnitude greater than 0.5) | |
virtual bool | OnDigitalMotion (bool bPressed, unsigned int holdTimeMs)=0 |
A key mapped to a digital feature has been pressed or released. | |
virtual bool | OnAnalogMotion (float magnitude, unsigned int motionTimeMs)=0 |
Callback for keys mapped to analog features. | |
Interface for handling keymap keys.
Keys can be mapped to analog actions (e.g. "AnalogSeekForward") or digital actions (e.g. "Up").
|
virtualdefault |
|
pure virtual |
Return true if the key is "pressed" (has a magnitude greater than 0.5)
Implemented in KODI::KEYMAP::CKeyHandler.
|
pure virtual |
Callback for keys mapped to analog features.
magnitude | The amount of the analog action |
motionTimeMs | The time since the magnitude was 0 |
Implemented in KODI::KEYMAP::CKeyHandler.
|
pure virtual |
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 |
Implemented in KODI::KEYMAP::CKeyHandler.