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

Class XInputMap_Joystick

src/XInput.cpp:146–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144// --------------------------------------------------------
145
146struct XInputMap_Joystick {
147 constexpr XInputMap_Joystick(uint8_t xl, uint8_t xh, uint8_t yl, uint8_t yh)
148 : x_low(xl), x_high(xh), y_low(yl), y_high(yh) {}
149 static const XInputController::Range range;
150 const uint8_t x_low;
151 const uint8_t x_high;
152 const uint8_t y_low;
153 const uint8_t y_high;
154};
155
156const XInputController::Range XInputMap_Joystick::range = { -32768, 32767 }; // int16_t
157

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected