]> code.bitgloo.com Git - clyne/gamedev.git/commitdiff
Updated event handling speed
authordrumsetmonkey <abelleisle@roadrunner.com>
Tue, 1 Dec 2015 13:33:58 +0000 (08:33 -0500)
committerdrumsetmonkey <abelleisle@roadrunner.com>
Tue, 1 Dec 2015 13:33:58 +0000 (08:33 -0500)
include/ui.h
main.cpp

index c3c894000d2cf9317d150ec457e435dcb98e05bb..51b5c19e6770116e59ad4a44e186a7304fbef2c7 100644 (file)
@@ -76,7 +76,6 @@ namespace ui {
        /*
         *      Handle keyboard/mouse events.
        */
-       
        void handleEvents(void);
        
        /*
index 26c44f82fd4d34ae5375b35652b8bedd3567ee38..f1ede469d3b767fd0f653ee1c69d5fe065104a3b 100644 (file)
--- 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