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

backend using io.KeyMap[], io.KeysDown[] should call io.AddKeyEvent() instaed #45

Open
kiraYuukiAsuna opened this issue Oct 30, 2022 · 0 comments

Comments

@kiraYuukiAsuna
Copy link

[Problem]
According to imgui release v1.87 :
2022/02/29: We discovered a backward-compatibility regression in 18700:
Direct legacy reads from io.KeysDown[] won't work with new backends.
And in particular io.KeysDown[GetKeyIndex[XXX]) will buffer overflow in old and new backends.
You can refer to https://github.com/ocornut/imgui/issues/4921
[Solution]
Backend writing to io.KeyMap[], io.KeysDown[] -> backend should call io.AddKeyEvent()

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

1 participant