Skip to content

Decouple key press into keyup and keydown #41

@drofp

Description

@drofp

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:

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestnontrivialNot exactly a quick fix...

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions