aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/ui.h1
-rw-r--r--main.cpp3
2 files changed, 2 insertions, 2 deletions
diff --git a/include/ui.h b/include/ui.h
index c3c8940..51b5c19 100644
--- a/include/ui.h
+++ b/include/ui.h
@@ -76,7 +76,6 @@ namespace ui {
/*
* Handle keyboard/mouse events.
*/
-
void handleEvents(void);
/*
diff --git a/main.cpp b/main.cpp
index 26c44f8..f1ede46 100644
--- a/main.cpp
+++ b/main.cpp
@@ -495,6 +495,7 @@ void mainLoop(void){
/*
* Run the logic handler if MSEC_PER_TICK milliseconds have passed.
*/
+ ui::handleEvents();
if(prevPrevTime + MSEC_PER_TICK <= currentTime){
logic();
prevPrevTime = currentTime;
@@ -809,7 +810,7 @@ void logic(){
/*
* Handle user input (keyboard & mouse).
*/
- ui::handleEvents();
+ //ui::handleEvents();
/*
* Run the world's detect function. This handles the physics of the player and any entities