MCPcopy Create free account
hub / github.com/dmadison/ArduinoXInput / getJoystickY

Method getJoystickY

src/XInput.cpp:403–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403int16_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
409uint8_t XInputController::getPlayer() const {
410 return player;

Callers

nothing calls this directly

Calls 1

getJoyFromEnumFunction · 0.85

Tested by

no test coverage detected