| 395 | } |
| 396 | |
| 397 | int16_t XInputController::getJoystickX(XInputControl joy) const { |
| 398 | const XInputMap_Joystick * joyData = getJoyFromEnum(joy); |
| 399 | if (joyData == nullptr) return 0; // Not a joystick |
| 400 | return (tx[joyData->x_high] << 8) | tx[joyData->x_low]; |
| 401 | } |
| 402 | |
| 403 | int16_t XInputController::getJoystickY(XInputControl joy) const { |
| 404 | const XInputMap_Joystick * joyData = getJoyFromEnum(joy); |
nothing calls this directly
no test coverage detected