From c061b990133dad2567d2dbb029e4b17c912ad857 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Tue, 12 Jun 2007 08:18:48 +0200 Subject: [PATCH] * Make the InputTask quit the program on escape. --- ABM2/Engine/InputTask.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ABM2/Engine/InputTask.cpp b/ABM2/Engine/InputTask.cpp index 97f04f8..61d5112 100755 --- a/ABM2/Engine/InputTask.cpp +++ b/ABM2/Engine/InputTask.cpp @@ -53,6 +53,9 @@ void CInputTask::Update() buttons=SDL_GetRelativeMouseState(&dX,&dY); memcpy(oldKeys,keys,sizeof(unsigned char)*keyCount); keys=SDL_GetKeyState(&keyCount); + + if (keyDown(SDLK_ESCAPE)) + this->getKernel()->KillAllTasks(); } void CInputTask::Stop() -- 2.30.2