| 401 | } |
| 402 | |
| 403 | int16_t XInputController::getJoystickY(XInputControl joy) const { |
| 404 | const XInputMap_Joystick * joyData = getJoyFromEnum(joy); |
| 405 | if (joyData == nullptr) return 0; // Not a joystick |
| 406 | return (tx[joyData->y_high] << 8) | tx[joyData->y_low]; |
| 407 | } |
| 408 | |
| 409 | uint8_t XInputController::getPlayer() const { |
| 410 | return player; |
nothing calls this directly
no test coverage detected