|
void | ResetMotion () |
| Reset motion timer.
|
|
void | StartMotion () |
| Start the motion timer.
|
|
bool | InMotion () const |
| Check if the feature is in motion.
|
|
unsigned int | MotionTimeMs () const |
| Get the time for which the feature has been in motion.
|
|
◆ OnDigitalMotion()
bool CAxisFeature::OnDigitalMotion |
( |
const CDriverPrimitive & |
source, |
|
|
bool |
bPressed |
|
) |
| |
|
overridevirtual |
A digital motion has occurred.
- Parameters
-
source | The source of the motion. Must be digital (button or hat) |
bPressed | True for press motion, false for release motion |
- Returns
- true if the motion was handled, false otherwise
Implements KODI::JOYSTICK::CJoystickFeature.
◆ ProcessMotions()
void CAxisFeature::ProcessMotions |
( |
| ) |
|
|
overridevirtual |
Process the motions that have occurred since the last invocation.
This allows features with motion on multiple driver primitives to call their handler once all driver primitives are accounted for.
Implements KODI::JOYSTICK::CJoystickFeature.
The documentation for this class was generated from the following files:
- xbmc/input/joysticks/generic/FeatureHandling.h
- xbmc/input/joysticks/generic/FeatureHandling.cpp