| 488 | } |
| 489 | |
| 490 | void Joystick_::setButton(uint8_t button, uint8_t value) |
| 491 | { |
| 492 | if (value == 0) |
| 493 | { |
| 494 | releaseButton(button); |
| 495 | } |
| 496 | else |
| 497 | { |
| 498 | pressButton(button); |
| 499 | } |
| 500 | } |
| 501 | void Joystick_::pressButton(uint8_t button) |
| 502 | { |
| 503 | if (button >= _buttonCount) return; |
nothing calls this directly
no outgoing calls
no test coverage detected