diff options
Diffstat (limited to 'src/UIClass.cpp')
-rw-r--r-- | src/UIClass.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/UIClass.cpp b/src/UIClass.cpp index 9cdf735..c17b6a7 100644 --- a/src/UIClass.cpp +++ b/src/UIClass.cpp @@ -1,22 +1,22 @@ -#include <UIClass.h> - -void UIClass::handleEvents(){ - SDL_Event e; - while(SDL_PollEvent(&e)){ - switch(e.type){ - case SDL_QUIT: - gameRunning=false; - break; - case SDL_KEYDOWN: - switch(e.key.keysym.sym){ - case 27: - gameRunning=false; - break; - default: - break; - } - default: - break; - } - } -} +#include <UIClass.h>
+
+void UIClass::handleEvents(){
+ SDL_Event e;
+ while(SDL_PollEvent(&e)){
+ switch(e.type){
+ case SDL_QUIT:
+ gameRunning=false;
+ break;
+ case SDL_KEYDOWN:
+ switch(e.key.keysym.sym){
+ case 27:
+ gameRunning=false;
+ break;
+ default:
+ break;
+ }
+ default:
+ break;
+ }
+ }
+}
|