|
kodi
|
Interface for handling keymap keys. More...
#include <IKeyHandler.h>

Public Member Functions | |
| virtual bool | IsPressed () const =0 |
| Return true if the key is "pressed" (has a magnitude greater than 0.5) More... | |
| virtual bool | OnDigitalMotion (bool bPressed, unsigned int holdTimeMs)=0 |
| A key mapped to a digital feature has been pressed or released. More... | |
| virtual bool | OnAnalogMotion (float magnitude, unsigned int motionTimeMs)=0 |
| Callback for keys mapped to analog features. More... | |
Interface for handling keymap keys.
Keys can be mapped to analog actions (e.g. "AnalogSeekForward") or digital actions (e.g. "Up").
|
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.
1.8.13