summaryrefslogtreecommitdiffstats
path: root/src/core/hid/input_interpreter.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-04-23general: Convert source file copyright comments over to SPDXMorph1-3/+2
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
2021-11-30input_interpreter: Make use of NpadButton instead of a u64Morph1-1/+1
Allows us to be more explicit with the representation of button states and use the provided bit manipulation operators
2021-11-25core/hid: Update structs to 13.1.0german771-1/+1
2021-11-25core: Update input interpretergerman771-42/+10
2021-11-25core/hid: Move input_interpreter to hidgerman771-0/+0
2021-04-15input_interpreter: Fix button hold being interpreted incorrectly on initMorph1-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.
2021-01-16input_interpreter: Mark two member functions as constLioncash1-4/+4
These aren't stateful functions, so we can make use of const. While we're at, we can resolve some -Wdocumentation warnings.
2021-01-16input_interpreter: Add method to check for a button press stateMorph1-0/+21
This allows to check for continuous input for the duration of a button press/hold
2020-12-18frontend/input_interpreter: Add InputInterpreter APIMorph1-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>