You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using SDL (SDL2 version 2.0.10) with a OpenGL3 backend. When I used the flag ImGuiInputTextFlags_EnterReturnsTrue the 'return' key works but the numpad 'enter' does not.
I fixed it by changing the following code in imgui_impl_sdl.cpp
// From
io.KeyMap[ImGuiKey_KeyPadEnter] = SDL_SCANCODE_RETURN2;
// To
io.KeyMap[ImGuiKey_KeyPadEnter] = SDL_SCANCODE_KP_ENTER;
Thought I'd pass it along. Thanks for your work!
The text was updated successfully, but these errors were encountered:
I'm using SDL (SDL2 version 2.0.10) with a OpenGL3 backend. When I used the flag ImGuiInputTextFlags_EnterReturnsTrue the 'return' key works but the numpad 'enter' does not.
I fixed it by changing the following code in imgui_impl_sdl.cpp
Thought I'd pass it along. Thanks for your work!
The text was updated successfully, but these errors were encountered: