| 499 | } |
| 500 | } |
| 501 | void Joystick_::pressButton(uint8_t button) |
| 502 | { |
| 503 | if (button >= _buttonCount) return; |
| 504 | |
| 505 | int index = button / 8; |
| 506 | int bit = button % 8; |
| 507 | |
| 508 | bitSet(_buttonValues[index], bit); |
| 509 | if (_autoSendState) sendState(); |
| 510 | } |
| 511 | void Joystick_::releaseButton(uint8_t button) |
| 512 | { |
| 513 | if (button >= _buttonCount) return; |
nothing calls this directly
no outgoing calls
no test coverage detected