◆ IsPressed()
bool KODI::KEYMAP::CKeyHandler::IsPressed |
( |
| ) |
const |
|
inlineoverridevirtual |
Return true if the key is "pressed" (has a magnitude greater than 0.5)
- Returns
- True if the key is "pressed", false otherwise
Implements KODI::KEYMAP::IKeyHandler.
◆ OnAnalogMotion()
bool CKeyHandler::OnAnalogMotion |
( |
float |
magnitude, |
|
|
unsigned int |
motionTimeMs |
|
) |
| |
|
overridevirtual |
Callback for keys mapped to analog features.
- Parameters
-
magnitude | The amount of the analog action |
motionTimeMs | The time since the magnitude was 0 |
- Returns
- True if the key is mapped to an action, false otherwise
Implements KODI::KEYMAP::IKeyHandler.
◆ OnDigitalMotion()
bool CKeyHandler::OnDigitalMotion |
( |
bool |
bPressed, |
|
|
unsigned int |
holdTimeMs |
|
) |
| |
|
overridevirtual |
A key mapped to a digital feature has been pressed or released.
- Parameters
-
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 |
- Returns
- True if the key is mapped to an action, false otherwise
Implements KODI::KEYMAP::IKeyHandler.
The documentation for this class was generated from the following files:
- xbmc/input/keymaps/generic/KeyHandler.h
- xbmc/input/keymaps/generic/KeyHandler.cpp