X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?p=physics.git;a=blobdiff_plain;f=src%2Finput%2FinputManager.cpp;h=21934c4c137769acdf76aeeb4c78497d947e7ad4;hp=3ecb477866776500da716639413053c3b178a70e;hb=e616366d12163fd5947cc87433e2dd51746e6846;hpb=5829cb660da640894c1de518353b175fbb1a12e0 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; } } }