示例#1
0
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);
}
示例#2
0
文件: wrap.c 项目: HugoVerger/Ettoihc
value ocaml_destroy (value v)
{
    destroySystem(systemSong, sound);
    return v;
}
示例#3
0
InputHandler::~InputHandler() 
{
	destroySystem();
}