projects
/
physics.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wip: reader, added key mappings
[physics.git]
/
src
/
config
/
config.cpp
diff --git
a/src/config/config.cpp
b/src/config/config.cpp
index
ae569fa
..
9aa6f86
100644
(file)
--- a/
src/config/config.cpp
+++ b/
src/config/config.cpp
@@
-16,6
+16,8
@@
*/
#include "config.h"
*/
#include "config.h"
+
+#include "reader.h"
#include "../input/inputManager.h"
/// ***** Private Method Headers *****
#include "../input/inputManager.h"
/// ***** Private Method Headers *****
@@
-25,6
+27,7
@@
void cfg::init()
{
void cfg::init()
{
+ readConfigs(NULL);
// TODO read in config files
}
void cfg::clean()
// TODO read in config files
}
void cfg::clean()
@@
-48,4
+51,17
@@
bool cfg::endGame()
return input::wasReleased(SDLK_ESCAPE);
}
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 *****
/// ***** Private Methods *****