Skip to content

Conversation

@shikaan
Copy link
Collaborator

@shikaan shikaan commented Nov 23, 2024

No description provided.

if (key == InputKey::UNDEFINED_KEY) break;

const auto evt = EventInput(key, InputAction::PRESSED);
const auto evt = EventInput(key, InputAction::PRESSED, event.key.repeat != 0 && key == lastKey);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be too opinionated. It does not seem to yield the expected results in test game, needs revisiting

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specifically, the key == lastKey seems brittle

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