Skip to content

added is_key_repeated #960

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

added is_key_repeated #960

wants to merge 2 commits into from

Conversation

lukasx999
Copy link
Contributor

Added is_key_repeated by storing the time each key is being held down for in a HashMap in Context.
The repeat delay is currently just a global constant, but I suppose it could also be a function parameter, although most other libraries (raylib, SDL, glfw) don't offer this kind of customization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant