Hey girls and guys,
Is it not possible to add multiple InputListeners to the InputManager of a SimpleApplication? In my code this segment appears:
handler[0] = new GamepadInmenuHandler(0);
handler[0] .init(app.getInputManager());
app.getInputManager().addListener(handler[0], handler[0].getActions());
kHandler = new KeyboardInmenuHandler();
kHandler.init(app.getInputManager());
app.getInputManager().addListener(kHandler, kHandler.getActions());
The first section is supposed to register a listener which listens to gamepad input, the latter is supposed to react to keyboard input. But when I do this, only keyboard input works - but when I swap these two paragraph’s position only gamepad input works. So it seems to me the InputManager is only supposed to have one listener and assigning one then more results in the first one to be overwritten?