summaryrefslogtreecommitdiff
path: root/src/KingSystem/ksysDebugInput.cpp
blob: b1af14355444464af14461a689012a2ed6b4c147 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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