changes to how configs react to input
[physics.git] / src / main.cpp
index e932742..050aff7 100644 (file)
@@ -182,10 +182,14 @@ void updateFPSCounters()
 
         last_Second = tickCountMicro();
 
-#ifdef FPSUPS
-        cout << "ups:\t" << ups << endl;
-        cout << "fps:\t" << fps << endl;
-#endif
+        if(cfg::showFPS())
+        {
+            cout << "fps:\t" << fps << endl;
+        }
+        if(cfg::showUPS())
+        {
+            cout << "ups:\t" << ups << endl;
+        }
     }
 }
 
@@ -193,6 +197,7 @@ void handleInput()
 {
     input::update();
 
+    cfg::handleInput();
     game::handleInput();
 
     if(cfg::endGame())