QcGamepadCurve Namespace
The response of QcGamepadResponse applied to sticks and triggers. More...
| Header: | #include <clientcore/input/QcGamepadResponse.h> |
Functions
| QcGamepadState | apply(const QcGamepadState &raw, QcGamepadResponse response) |
| QcStickVector | stick(QcStickVector raw, QcGamepadResponse response) |
| float | trigger(float raw, QcGamepadResponse response) |
Detailed Description
Function Documentation
QcGamepadState QcGamepadCurve::apply(const QcGamepadState &raw, QcGamepadResponse response)
Returns raw with both sticks and triggers through response, buttons unchanged.
QcStickVector QcGamepadCurve::stick(QcStickVector raw, QcGamepadResponse response)
Returns the raw stick through the radial dead zone and the curve of response; the result's length is at most 1.
float QcGamepadCurve::trigger(float raw, QcGamepadResponse response)
Returns the raw trigger (0..1) through its dead zone, the outer zone and the curve of response.