FlyByCamera modified to check if its mappings exist
before unregistering them. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9165 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
e7f0a5ad91
commit
c084f0a025
@ -225,7 +225,9 @@ public class FlyByCamera implements AnalogListener, ActionListener {
|
||||
}
|
||||
|
||||
for (String s : mappings) {
|
||||
inputManager.deleteMapping( s );
|
||||
if (inputManager.hasMapping(s)) {
|
||||
inputManager.deleteMapping( s );
|
||||
}
|
||||
}
|
||||
|
||||
inputManager.removeListener(this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user