projects
/
physics.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added X button to mimic the end button
[physics.git]
/
src
/
input
/
inputManager.cpp
diff --git
a/src/input/inputManager.cpp
b/src/input/inputManager.cpp
index
3ecb477
..
21934c4
100644
(file)
--- 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;
}
}
}