OdysseyDecomp/lib/al/Library/Controller/KeyRepeatCtrl.h
2024-07-18 13:09:31 +02:00

24 lines
406 B
C++

#pragma once
#include <basis/seadTypes.h>
namespace al {
class KeyRepeatCtrl {
public:
KeyRepeatCtrl();
void init(s32 initialMaxWait, s32 maxWait);
void reset();
void update(bool up, bool down);
bool isDown() const;
bool isUp() const;
private:
s32 mInitialMaxWait;
s32 mMaxWait;
s32 mUpCounter;
s32 mDownCounter;
bool mIsEnableCounter;
};
} // namespace al