コード例 #1
0
ファイル: input.cpp プロジェクト: cheesecakenl/git-c-plusplus
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
ファイル: input.cpp プロジェクト: cheesecakenl/git-c-plusplus
InputHandler::~InputHandler() 
{
	destroySystem();
}