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

Method setJoystickRange

src/XInput.cpp:544–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542}
543
544void XInputController::setJoystickRange(int32_t rangeMin, int32_t rangeMax) {
545 setRange(JOY_LEFT, rangeMin, rangeMax);
546 setRange(JOY_RIGHT, rangeMin, rangeMax);
547}
548
549void XInputController::setRange(XInputControl ctrl, int32_t rangeMin, int32_t rangeMax) {
550 if (rangeMin >= rangeMax) return; // Error: Max < Min

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected