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

Numpad (keypad) inputs not working on the demos #114

Open
quantmage opened this issue Jun 5, 2024 · 0 comments
Open

Numpad (keypad) inputs not working on the demos #114

quantmage opened this issue Jun 5, 2024 · 0 comments

Comments

@quantmage
Copy link

quantmage commented Jun 5, 2024

Nothing happens if you try typing a digit in any input field with numpad keys. My web app based on hello_imgui has the same issue. And I note that it happens on the demos linked in this repo's readme, too, except the calculator one, which I think doing some manual key input handling.

Not sure if the issue is platform-specific (emscripten+sdl2, I believe) or not. I tried to figure out the cause and spent a few hours this morning looking into the relevant code, but no luck so far.

Another demo of yours (https://github.com/pthom/implot_demo) somehow works with numpad keys, so I wonder what's the difference. It doesn't works 100% though. With Num Lock on, it works. But with Num Lock off, nothing happens (in other words, pressing the keypad 4 doesn't work like the left arrow key.) Another ImGui demo that doesn't use SDL2 (https://jnmaloney.github.io/WebGui/imgui.html) works perfectly with numpad keys for both Num Lock on and off.

I would appreciate any insight on how this can be fixed or any workaround.

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