void InputHandler::StateSwitched(SimulationState old, SimulationState cur) { int height = mMouse->getMouseState().height; int width = mMouse->getMouseState().width; if (old == SIMULATION && cur == SIMULATION_MOUSELOOK || cur == SIMULATION_TOPDOWNVIEW) { destroySystem(); createSystem(true); //capture(); } else if ((cur == SIMULATION) && old == SIMULATION_MOUSELOOK || old == SIMULATION_TOPDOWNVIEW) { destroySystem(); createSystem(false); //capture(); } setWindowExtents(width, height); }
value ocaml_destroy (value v) { destroySystem(systemSong, sound); return v; }
InputHandler::~InputHandler() { destroySystem(); }