/// ***** Private Method Headers *****
/// ***** Private Variables *****
-bool fPaused = false;
+bool fPaused = false;
+
+bool fEndGame = false;
+
+bool fWellFollow= false;
+bool fWellOn = false;
+bool fWellOff = false;
+
+bool fShowFPS = true;
+bool fShowUPS = true;
/// ***** Initializers/Cleaners *****
/// ***** Public Methods *****
+void cfg::handleInput()
+{
+ fPaused = input::wasPressed (key::pause) ? !fPaused : fPaused;
+
+ fEndGame = input::wasReleased(key::end);
+
+ fWellFollow = input::isPressed (key::follow);
+ fWellOn = input::wasPressed (key::well);
+ fWellOff = input::wasReleased(key::well);
+}
+
bool cfg::paused()
{
- fPaused = input::wasPressed(key::pause) ? !fPaused : fPaused;
return fPaused;
}
bool cfg::endGame()
{
- return input::wasReleased(key::end);
+ return fEndGame;
}
bool cfg::mouseWellFollow()
{
- return input::isPressed(key::follow);
+ return fWellFollow;
}
bool cfg::mouseWellOn()
{
- return input::wasPressed(key::well);
+ return fWellOn;
}
bool cfg::mouseWellOff()
{
- return input::wasReleased(key::well);
+ return fWellOff;
}
bool cfg::showFPS()
{
- return true;
+ return fShowFPS;
}
bool cfg::showUPS()
{
- return true;
+ return fShowUPS;
}
/// ***** Private Methods *****