summaryrefslogtreecommitdiff
path: root/shared-module/gamepad/__init__.h
AgeCommit message (Collapse)Author
2017-10-22Gracefully reset the gamepad moduleRadomir Dopieralski
If a soft reset happens while the gamepad module is scanning for button presses, there is a moment when the pins get de-initialized, but the gamepad module is still trying to read them, which ends in a crash. We can avoid it by disabling scanning on reset. (cherry picked from commit 470a23d4c9345785bbaa830fdc036b4e982496c6) Conflicts: atmel-samd/main.c
2017-10-03Add a `gamepad` module for handling buttons in the background. (#295)Radomir Dopieralski
The `GamePad` singleton monitors buttons in the background to make sure a button press is never missed and debouncing happens consistently.