Hi I have a problem and I tracked it down to the change of lwjgl version.
This is the code:
public class LemurInputBugDemo extends SimpleApplication {
public static void main(String[] args) {
new LemurInputBugDemo().start();
}
@Override
public void simpleInitApp() {
GuiGlobals.initialize(this);
BaseStyles.loadGlassStyle();
GuiGlobals.getInstance().getStyles().setDefaultStyle("glass");
Material material = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
material.setColor("Color", Yellow);
Geometry geo = new Geometry("box", new Box(1, 1, 1));
geo.setMaterial(material);
rootNode.attachChild(geo);
Container container = new Container();
container.setPreferredSize(new Vector3f(200, 50, 0));
container.setLocalTranslation(cam.getWidth() / 2 - 100, cam.getHeight() / 2, 0);
container.addChild(new TextField("type here"));
guiNode.attachChild(container);
}
}
When I build this code with LWJGL 2, if I type in the TextField using the wasd keys then the flycam state does not receive the input and stays still.
However when I build the exact same code with LWJGL 3 then the flycam moves (the text is also written in the field). Is as if the TextArea doesn’t consume the input and lets it go through.
I believe blocking the input is the expected behavior, or I’m missing something?