added X button to mimic the end button
authorPatrik Gornicz <Gornicz.P@gmail.com>
Sat, 22 Nov 2008 06:04:59 +0000 (01:04 -0500)
committerPatrik Gornicz <Gornicz.P@gmail.com>
Sat, 22 Nov 2008 06:04:59 +0000 (01:04 -0500)
src/input/inputManager.cpp

index 3ecb477..21934c4 100644 (file)
@@ -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;
         }
     }
 }