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

Method invertInput

src/XInput.cpp:535–537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533}
534
535int16_t XInputController::invertInput(int16_t val, const Range& range) {
536 return range.max - val + range.min;
537}
538
539void XInputController::setTriggerRange(int32_t rangeMin, int32_t rangeMax) {
540 setRange(TRIGGER_LEFT, rangeMin, rangeMax);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected