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:
PSp..om 2012-02-17 03:57:23 +00:00
parent e7f0a5ad91
commit c084f0a025

View File

@ -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);