Keyboard not working (LWJGL)
See original GitHub issueI’m using existing LWJGL app and creating imgui like this:
ctx = Context()
val window = Application.instance.window.getHandle()
io.configFlags = io.configFlags or ConfigFlag.NavEnableKeyboard.i
io.configFlags = io.configFlags or ConfigFlag.NavEnableGamepad.i
ImGui.styleColorsDark()
implGlfw = ImplGlfw(GlfwWindow.from(window), true)
implGL3 = ImplGL3()
This works and I can see the demo window and open examples from the menu. However I cannot type in any input field.
I was using my own event system and installing my own callbacks to glfw and thought that might be the problem, so I commented out creation of key and char callbacks, but the result hasn’t changed.
I also tried this with both
implGlfw = ImplGlfw(GlfwWindow.from(window), true)
and
implGlfw = ImplGlfw(GlfwWindow.from(window), false)
I am using lwjgl:3.2.2 and imgui:-SNAPSHOT on Windows 10 with JDK 11
Issue Analytics
- State:
- Created 4 years ago
- Comments:10
Top Results From Across the Web
lwjgl import Input Classes is not working - Stack Overflow
You are using LWJGL 3 right? LWJGL 3 doesn't have a Keyboard or Mouse class, you have to use the functions provided by...
Read more >Keyboard not working WTF ? - LWJGL Forum
Yuri6037: When I use Keyboard.isKeyDown(a key number), I get all the time false never true, and if I press the key I get...
Read more >[FIXED] Keyboard does not respond on Linux - LWJGL Forum
The problem is that window is displaying, but it doesn't respond to keyboard. It does respond to mouse however. When I run the...
Read more >No ENTER keycode? - LWJGL Forum
I've been navigating through all the Keyboard keycodes, but I just can't find the ENTER key. Maybe you should use Keybaord.KEY_NUMPADENTER, but ...
Read more >[FIXED] Keyboard does not respond on Linux - LWJGL Forum
I've tried some of the code on that page (setIgnoreRepaint and setFocusable) and it still crashes with that error. I think it's a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry, the project was renamed, I updated the link.
Edit: I just realized that the project no longer runs with the latest imgui version. I will try to get it to work properly and update here.
hi @mertcanekiz news?