[jme3] Mouse issue

Hello people, i am beginning with jme3 and there is something i don’t quite understand :confused:

As soon as i start using this: mouseInput.setInputListener(inputListener), it works but i can’t use the trigger MouseButtonTrigger(0) and detect clicks with an ActionListener anymore !

Is it normal ?



thanks :slight_smile:

You can’t use the mouseInput class as it is used internally by the input manager.

Recently a change was made to input manager so you can now retrieve the cursor position using InputManager.getCursorPosition(), so you should use that instead of setting your own listener.