mirror of
https://github.com/MonsterDruide1/OdysseyDecomp
synced 2026-04-27 11:04:16 +00:00
24 lines
406 B
C++
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
|