* Fixed issue 460
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9988 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
0229a54b5e
commit
2d69a5d159
@ -56,6 +56,7 @@ public class NiftyJmeDisplay implements SceneProcessor {
|
||||
protected Nifty nifty;
|
||||
protected AssetManager assetManager;
|
||||
protected RenderManager renderManager;
|
||||
protected InputManager inputManager;
|
||||
protected RenderDeviceJme renderDev;
|
||||
protected InputSystemJme inputSys;
|
||||
protected SoundDeviceJme soundDev;
|
||||
@ -92,6 +93,7 @@ public class NiftyJmeDisplay implements SceneProcessor {
|
||||
AudioRenderer audioRenderer,
|
||||
ViewPort vp){
|
||||
this.assetManager = assetManager;
|
||||
this.inputManager = inputManager;
|
||||
|
||||
w = vp.getCamera().getWidth();
|
||||
h = vp.getCamera().getHeight();
|
||||
@ -184,6 +186,9 @@ public class NiftyJmeDisplay implements SceneProcessor {
|
||||
public void cleanup() {
|
||||
inited = false;
|
||||
inputSys.reset();
|
||||
if (inputManager != null) {
|
||||
inputManager.removeRawInputListener(inputSys);
|
||||
}
|
||||
// nifty.exit();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user