FiniteTrigger
The FiniteTrigger struct stores data about a controller’s triggers.
typedef struct { uint16_t axis; double value;} FiniteTrigger;Properties
Section titled “Properties”| Type | Description |
|---|---|
uint16_t axis | The linux evdev code of the trigger. |
double value | The “pressure” value of the triggers. |
Specification
Section titled “Specification”Developers in general are discourageed from trying to read data from a gamepad directly as they are a “voliatile type” Controllers can be disconnected at any time for any reason and as such this struct may not always exist when trying to read it even after verifying its existance (TOCTOU).