summaryrefslogtreecommitdiffstats
path: root/src/core/frontend/input_interpreter.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* input_interpreter: Fix button hold being interpreted incorrectly on initMorph2021-04-151-0/+3
| | | | We reset all the button states to 0 except the first index (which has all the buttons as pressed) to prevent a button hold being interpreted as a button that was pressed once on the first poll.
* input_interpreter: Mark two member functions as constLioncash2021-01-161-4/+4
| | | | | | These aren't stateful functions, so we can make use of const. While we're at, we can resolve some -Wdocumentation warnings.
* input_interpreter: Add method to check for a button press stateMorph2021-01-161-0/+21
| | | | This allows to check for continuous input for the duration of a button press/hold
* frontend/input_interpreter: Add InputInterpreter APIMorph2020-12-181-0/+120
The InputInterpreter class interfaces with HID to retrieve button press states. Input is intended to be polled every 50ms so that a button is considered to be held down after 400ms has elapsed since the initial button press and subsequent repeated presses occur every 50ms. Co-authored-by: Chloe <25727384+ogniK5377@users.noreply.github.com>