@sradkiller said:
i found this https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:appstatesdemo... work, but have bug...
the screens dont "clear"
It also overrides stateAttached and stateDetached… this is something you should normally NEVER do. That demo is really pretty broken.
@sradkiller said:
Thank guys :)
This Link solve :)
and now... how i enable inputmanager key just in determined AbstractAppState ?
Sample:
The keys W, A,D,S just works in MyAbstractAppState1
The keys I, O, K, J just works in MyAbstractAppState2
??
Thank
When an appState is enabled, it should, for each key:
inputManager.addMapping(…
inputManager.addListener(…
When disabled, it should, for each key:
inputManager.deleteMapping(…
Ideally, have a method do that in a listener class, one per appState and have the appState call that method when it is enabled/disabled (like I described up there)