projects
/
physics.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reworked ups/fps/paused logic
[physics.git]
/
src
/
config
/
config.cpp
diff --git
a/src/config/config.cpp
b/src/config/config.cpp
index
3b694ba
..
69406bc
100644
(file)
--- a/
src/config/config.cpp
+++ b/
src/config/config.cpp
@@
-27,6
+27,8
@@
/// ***** Private Method Headers *****
/// ***** Private Variables *****
/// ***** Private Method Headers *****
/// ***** Private Variables *****
+bool fPaused = false;
+
/// ***** Initializers/Cleaners *****
void cfg::init()
/// ***** Initializers/Cleaners *****
void cfg::init()
@@
-43,13
+45,10
@@
void cfg::clean()
/// ***** Public Methods *****
/// ***** Public Methods *****
-bool cfg::pause()
-{
- return input::wasPressed(key::pause);
-}
-bool cfg::unPause()
+bool cfg::paused()
{
{
- return input::wasPressed(key::pause);
+ fPaused = input::wasPressed(key::pause) ? !fPaused : fPaused;
+ return fPaused;
}
bool cfg::endGame()
}
bool cfg::endGame()
@@
-70,4
+69,13
@@
bool cfg::mouseWellOff()
return input::wasReleased(key::well);
}
return input::wasReleased(key::well);
}
+bool cfg::showFPS()
+{
+ return true;
+}
+bool cfg::showUPS()
+{
+ return true;
+}
+
/// ***** Private Methods *****
/// ***** Private Methods *****