| 547 | } |
| 548 | |
| 549 | void XInputController::setRange(XInputControl ctrl, int32_t rangeMin, int32_t rangeMax) { |
| 550 | if (rangeMin >= rangeMax) return; // Error: Max < Min |
| 551 | |
| 552 | Range * range = getRangeFromEnum(ctrl); |
| 553 | if (range == nullptr) return; // Not an addressable range |
| 554 | |
| 555 | range->min = rangeMin; |
| 556 | range->max = rangeMax; |
| 557 | } |
| 558 | |
| 559 | // Resets class back to initial values |
| 560 | void XInputController::reset() { |
nothing calls this directly
no outgoing calls
no test coverage detected