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

Keyboard buffering causes control lag #230

Open
hosford42 opened this issue Aug 24, 2019 · 1 comment
Open

Keyboard buffering causes control lag #230

hosford42 opened this issue Aug 24, 2019 · 1 comment

Comments

@hosford42
Copy link

When holding down a key, the keyboard buffer fills, causing the associated behavior to continue afterward for some time. For example, if I hold down the W key for a few seconds, the character continues to move forward for some time after releasing the key. This makes the game very difficult to play. Using keyboard events (key down/key up) instead of buffered keyboard input would eliminate this issue.

@twetzel59
Copy link

As I understand, you are suggesting using the GLFW event delivery to track keyup/keydown, and storing the state somewhere, probably in the Model struct?

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

No branches or pull requests

2 participants