summaryrefslogtreecommitdiff
path: root/src/KingSystem/ksysDebugInput.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2021-12-31 19:42:04 +0100
committerGitHub <noreply@github.com>2021-12-31 19:42:04 +0100
commit0a82a40bc3870d0b4c0119fc3d5ec21f660241cc (patch)
tree0acaa458631e0501db9f084fc2a087ca8ed6d50f /src/KingSystem/ksysDebugInput.cpp
parenta4f0d8d6cd0d661c955f59986b22fa968d783b0a (diff)
parent0542fa53b51af9359cbdf7c58df031edf4a17b31 (diff)
Merge pull request #74 from savage13/ksysDebugInput
Add ksysDebugInput Singleton
Diffstat (limited to 'src/KingSystem/ksysDebugInput.cpp')
-rw-r--r--src/KingSystem/ksysDebugInput.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/KingSystem/ksysDebugInput.cpp b/src/KingSystem/ksysDebugInput.cpp
new file mode 100644
index 00000000..b1af1435
--- /dev/null
+++ b/src/KingSystem/ksysDebugInput.cpp
@@ -0,0 +1,17 @@
+#include "KingSystem/ksysDebugInput.h"
+#include "KingSystem/System/VFR.h"
+
+namespace ksys {
+
+SEAD_SINGLETON_DISPOSER_IMPL(DebugInput)
+
+void DebugInput::update() {
+ if (mFlags.isOnBit(0)) {
+ mLastDelta += VFR::instance()->getDeltaTime();
+ while (mLastDelta > 30.0) {
+ mLastDelta -= 30.0;
+ }
+ }
+}
+
+} // namespace ksys