#include <FeatureHandling.h>
◆ CScalarFeature()
◆ ~CScalarFeature()
KODI::JOYSTICK::CScalarFeature::~CScalarFeature |
( |
| ) |
|
|
overridedefault |
◆ OnAnalogMotion()
An analog motion has occurred.
- Parameters
-
source | The source of the motion. Must be a semiaxis |
magnitude | The magnitude of the press or motion in the interval [0.0, 1.0] |
For semiaxes, the magnitude is the force or travel distance in the direction of the semiaxis. If the value is in the opposite direction, the magnitude is 0.0.
For example, if the analog stick goes left, the negative semiaxis will have a value of 1.0 and the positive semiaxis will have a value of 0.0.
Implements KODI::JOYSTICK::CJoystickFeature.
◆ OnDigitalMotion()
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 CScalarFeature::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: