SDL_PumpEvents();\r
oldButtons=buttons;\r
buttons=SDL_GetRelativeMouseState(&dX,&dY);\r
- memcpy((unsigned char*)(*oldKeys),keys,sizeof(unsigned char)*keyCount);\r
+ memcpy(oldKeys,keys,sizeof(unsigned char)*keyCount);\r
keys=SDL_GetKeyState(&keyCount);\r
+\r
+ if (keyDown(SDLK_ESCAPE))\r
+ this->getKernel()->KillAllTasks();\r
}\r
\r
void CInputTask::Stop()\r