| 49 | } REMOTE_DATA_RX; |
| 50 | |
| 51 | class Button { |
| 52 | public: |
| 53 | Button() {} |
| 54 | |
| 55 | void update(bool state) { |
| 56 | on_press = state ? state != pressed : false; |
| 57 | on_release = state ? false : state != pressed; |
| 58 | pressed = state; |
| 59 | } |
| 60 | |
| 61 | bool pressed = false; |
| 62 | bool on_press = false; |
| 63 | bool on_release = false; |
| 64 | }; |
| 65 | |
| 66 | class Gamepad { |
| 67 | public: |
nothing calls this directly
no outgoing calls
no test coverage detected