Skip to content
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

Register quick key presses #293

Merged
merged 6 commits into from
Oct 31, 2022
Merged

Register quick key presses #293

merged 6 commits into from
Oct 31, 2022

Conversation

FluffyQuack
Copy link
Contributor

If the user is very quick with key presses (that is, the user presses and releases a key within the 83.333ms window between game updates), then the game ignores those key presses. This PR fixes that and makes the controls feel responsive overall. I find it's especially noticeable during combat where you might briefly tap up/shift to parry/attack.

…And updated ingame input code to use the new system, which makes it possible to check for button press that are pressed and released between game updates, reducing chances for dropped input (dropped input can still happen if user holds down a key, and then releases and re-presses between game updates).
…moved KEYSTATE_RELEASED_NEW bitflag as there was no use for it afterall.
@NagyD NagyD merged commit 8c86c61 into NagyD:master Oct 31, 2022
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.

2 participants