From e616366d12163fd5947cc87433e2dd51746e6846 Mon Sep 17 00:00:00 2001 From: Patrik Gornicz Date: Sat, 22 Nov 2008 01:04:59 -0500 Subject: [PATCH] added X button to mimic the end button --- src/input/inputManager.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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; } } } -- 2.10.2