|
|
| CKeyHandler (const std::string &keyName, IActionListener *actionHandler, const IKeymap *keymap, IKeymapHandler *keymapHandler) |
| |
| bool | IsPressed () const override |
| | Return true if the key is "pressed" (has a magnitude greater than 0.5) More...
|
| |
| bool | OnDigitalMotion (bool bPressed, unsigned int holdTimeMs) override |
| | A key mapped to a digital feature has been pressed or released. More...
|
| |
| bool | OnAnalogMotion (float magnitude, unsigned int motionTimeMs) override |
| | Callback for keys mapped to analog features. More...
|
| |
◆ IsPressed()
| bool KODI::JOYSTICK::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::JOYSTICK::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::JOYSTICK::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::JOYSTICK::IKeyHandler.
The documentation for this class was generated from the following files:
- xbmc/input/joysticks/keymaps/KeyHandler.h
- xbmc/input/joysticks/keymaps/KeyHandler.cpp