summaryrefslogtreecommitdiff
path: root/src/KingSystem/ksysDebugInput.cpp
blob: 2ff54035022bf8cf312f759dcc64cb015273999d (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()->getDeltaFrame();
        while (mLastDelta > 30.0) {
            mLastDelta -= 30.0;
        }
    }
}

}  // namespace ksys