From: Patrik Gornicz Date: Sat, 22 Nov 2008 06:04:59 +0000 (-0500) Subject: added X button to mimic the end button X-Git-Tag: physics-premerge~89 X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=commitdiff_plain;h=e616366d12163fd5947cc87433e2dd51746e6846;p=libbear.git added X button to mimic the end button --- diff --git a/src/input/inputManager.cpp b/src/input/inputManager.cpp index 3ecb477..21934c4 100644 --- a/src/input/inputManager.cpp +++ b/src/input/inputManager.cpp @@ -18,6 +18,8 @@ #include "inputManager.h" #include "../debug.h" +#include "../config/keys.h" + /// ***** Private Variables ***** @@ -68,6 +70,9 @@ void input::update() case SDL_KEYDOWN: keyState[event.key.keysym.sym] = wasP; break; + case SDL_QUIT: + keyState[key::end] = wasR; + break; } } }