-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or requestnontrivialNot exactly a quick fix...Not exactly a quick fix...
Description
This will allow the character to move faster than the keyboard's refresh rate. Notice if you hold down left or right, the character changes in position at the same rate your keyboard would repeat a letter in a text editor if you held down the key for that letter.
After talking with a few test players and friends, it seems like the solution is to decouple wgetch() into KeyDown() and KeyUp() event handlers.
This is a supposedly a non-trivial task when fetching this information from a terminal:
- https://blog.robertelder.org/detect-keyup-event-linux-terminal/
- https://stackoverflow.com/questions/1409216/receiving-key-press-and-key-release-events-in-linux-terminal-applications
- https://news.ycombinator.com/item?id=19012132
Some implications:
- we will probably have to run as
sudo - we may need to make a different version for each OS, or each family of OS (Linux distros, MacOS, Windows)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestnontrivialNot exactly a quick fix...Not exactly a quick fix...