Add support for analog input (e.g. keypad)
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 37k
- Forks
- 3.5k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 22
Description
It would be nice to be able to use analog input devices (e.g. analog sticks on keypads) for analog interactive control.
Currently, gamepad stick keybindings work as simple (digital) buttons activated by a threshold (sdl_gamepad.c), but preferably one would be able to bind commands with the value of the input device, e.g. to seek with variable speed/interval.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the gamepad handling in sdl_gamepad.c around line 112, where stick inputs are currently reduced to thresholded buttons. Determine how analog values should reach command bindings, including variable-speed or variable-interval seeking. Done means analog input devices such as keypad sticks can control commands using their input value rather than only activating digital bindings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100