question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Keyboard not working (LWJGL)

See original GitHub issue

I’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:closed
  • Created 4 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
mertcanekizcommented, Dec 11, 2019

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.

0reactions
elect86commented, Sep 17, 2020

hi @mertcanekiz news?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found