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

[Feature]: Add char support for key events #27

Open
bernhardfritz opened this issue Nov 20, 2022 · 0 comments
Open

[Feature]: Add char support for key events #27

bernhardfritz opened this issue Nov 20, 2022 · 0 comments
Labels
feature New feature or request

Comments

@bernhardfritz
Copy link
Owner

bernhardfritz commented Nov 20, 2022

Describe your idea

As requested by iddq_tea on discord https://discord.com/channels/959169147550445598/959169147550445601/1041456301311529042, they want an easy way to find which character was last pressed.

Solution:
Add a variable key that contains last ASCII-based key pressed. We might also need another callback like keyTyped that is called whenever a key is supposed to be typed/repeated. GLFW supports this out-of-the-box: https://www.glfw.org/docs/3.3/group__input.html#gab25c4a220fd8f5717718dbc487828996

@bernhardfritz bernhardfritz added the feature New feature or request label Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant