*/
#include "config.h"
+#include "../debug.h"
+
+#include <SDL/SDL.h>
+#include "keys.h"
+
+#include "reader.h"
#include "../input/inputManager.h"
/// ***** Private Method Headers *****
/// ***** Private Variables *****
+bool fPaused = false;
+
/// ***** Initializers/Cleaners *****
void cfg::init()
{
+ key::init();
+ readConfigs();
+
// TODO read in config files
}
void cfg::clean()
/// ***** Public Methods *****
-bool cfg::pause()
+bool cfg::paused()
{
- return input::wasPressed(SDLK_p);
+ fPaused = input::wasPressed(key::pause) ? !fPaused : fPaused;
+ return fPaused;
}
-bool cfg::unPause()
+
+bool cfg::endGame()
{
- return input::wasPressed(SDLK_p);
+ return input::wasReleased(key::end);
}
-bool cfg::endGame()
+bool cfg::mouseWellFollow()
+{
+ return input::isPressed(key::follow);
+}
+bool cfg::mouseWellOn()
+{
+ return input::wasPressed(key::well);
+}
+bool cfg::mouseWellOff()
+{
+ return input::wasReleased(key::well);
+}
+
+bool cfg::showFPS()
+{
+ return true;
+}
+bool cfg::showUPS()
{
- return input::wasReleased(SDLK_ESCAPE);
+ return true;
}
/// ***** Private Methods *****