| 271 | } |
| 272 | |
| 273 | void XInputController::setJoystick(XInputControl joy, int32_t x, int32_t y) { |
| 274 | const XInputMap_Joystick * joyData = getJoyFromEnum(joy); |
| 275 | if (joyData == nullptr) return; // Not a joystick |
| 276 | |
| 277 | x = rescaleInput(x, *getRangeFromEnum(joy), XInputMap_Joystick::range); |
| 278 | y = rescaleInput(y, *getRangeFromEnum(joy), XInputMap_Joystick::range); |
| 279 | |
| 280 | setJoystickDirect(joy, x, y); |
| 281 | } |
| 282 | |
| 283 | void XInputController::setJoystickX(XInputControl joy, int32_t x, boolean invert) { |
| 284 | const XInputMap_Joystick * joyData = getJoyFromEnum(joy); |
nothing calls this directly
no test coverage detected