How would i delete the mouse movement mapping from the input and just as easily be able to add it back to the input mapping? I want to disable the mouse buttons and im trying to make it so that the camera rotation doesnt depend on the mouse movements.
I don’t know if i understood the problem, however you could do something like this:
[java]
private ActionListener actionListener = new ActionListener() {
private boolean mouseEnabled = false;
/*
setter and getter
*/
public void onAction(String name, boolean isPressed, float tpf) {
if(mouseEnabled){
…
}
}
[/java]
enabling and disabling what you need, when you need instead of attaching and detaching the listener.