wip: config reader
[physics.git] / src / config / config.cpp
index ae569fa..9aa6f86 100644 (file)
@@ -16,6 +16,8 @@
  */
 
 #include "config.h"
+
+#include "reader.h"
 #include "../input/inputManager.h"
 
 /// ***** Private Method Headers *****
@@ -25,6 +27,7 @@
 
 void cfg::init()
 {
+    readConfigs(NULL);
     // TODO read in config files
 }
 void cfg::clean()
@@ -48,4 +51,17 @@ bool cfg::endGame()
     return input::wasReleased(SDLK_ESCAPE);
 }
 
+bool cfg::mouseWellFollow()
+{
+    return input::isPressed(SDLK_f);
+}
+bool cfg::mouseWellOn()
+{
+    return input::wasPressed(SDLK_SPACE);
+}
+bool cfg::mouseWellOff()
+{
+    return input::wasReleased(SDLK_SPACE);
+}
+
 /// ***** Private Methods *****