import com.jme.app.BaseGame;
import com.jme.app.GameStateManager;
import com.jme.input.InputSystem;
+import com.jme.input.KeyInput;
+import com.jme.input.MouseInput;
+import com.jme.input.joystick.JoystickInput;
import com.jme.system.DisplaySystem;
import com.jme.system.JmeException;
import com.jme.util.LoggingSystem;
/** Get a high resolution timer for FPS updates. */
timer = Timer.getTimer(properties.getRenderer());
- InputSystem.createInputSystem(properties.getRenderer());
}
/**
// Performs cleanup on all loaded game states.
GameStateManager.getInstance().cleanup();
- if (InputSystem.getKeyInput() != null)
- InputSystem.getKeyInput().destroy();
- if (InputSystem.getMouseInput() != null)
- InputSystem.getMouseInput().destroy();
+ KeyInput.destroyIfInitalized();
+ MouseInput.destroyIfInitalized();
+ JoystickInput.destroyIfInitalized();
}
/**