Hello,
I’m using key input from the keyboard in my programm for “steering”.
example
inputManager.addMapping("Key_A", new KeyTrigger(KeyInput.KEY_S));
inputManager.addMapping("Key_D", new KeyTrigger(KeyInput.KEY_S));
inputManager.addMapping("Key_W", new KeyTrigger(KeyInput.KEY_S));
inputManager.addMapping("Key_S", new KeyTrigger(KeyInput.KEY_S));
inputManager.addListener(analogListener, "Key_A","Key_D","Key_W","Key_S",
private AnalogListener analogListener = new AnalogListener() {
@Override
public void onAnalog(String name, float value, float tpf) {
if (name.equals("Key_A")){
// do this
} else ...
Everything is working fine so far when i use the keyboard.
But when I want to use a USB-device to trigger the keys (Elgato Stream Deck) it is not working.
Not in the editor of the IDE an not in the running program.
But it works fine in every other application on the desktop (Editor, Outlook, Teams…)
Does anybody have an idea?