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 = new GamepadInmenuHandler(0); handler .init(app.getInputManager()); app.getInputManager().addListener(handler, handler.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?