Can input manager to be set as Enabled or not(setEnabled(false/true))?

Any code for making my mouse input or key input stop/pause working and when I need it, it will be back?

Maybe thread could do that but I dont want to use it…

You can register/unregister keys/inputs.

You could also use a boolean and check that in each stuff you do.

appstate is perfect for this, using the stateattached/initialize and statedetached methods.



[java]stateAttached() {

inputManager.addMapping(…);

}



stateDetached() {

inputManager.deleteMappaing(…)

}[/java]

2 Likes