Skip to content

Key Press API #4

@Sherlouk

Description

@Sherlouk

One of the core fundamentals of this library is going to be the ability for developers to pick up on key presses and do something with that action. I haven't completely determined how I'd like this to work though!

Here are the different things I want to be able to track:

  • Key(s) Down
  • Key(s) Up
  • Key(s) Hold (for a specified amount of time)

Each of these should have the ability to specify either one or multiple keys to listen for. For example I could say when key 1 is pressed down do something, or when both keys 1, 3, and 5 are all pressed at the same time do something else.

Key hold is an interesting one and I don't believe should be exclusive from other events (in that it will still call key up after the specified time) and should be called once as soon as the time has been reached.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestflesh outIssue details are incomplete and need expanding upon

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions