Match and link CFinalInput

Former-commit-id: bacfa6a458
This commit is contained in:
2022-10-08 15:05:33 -07:00
parent 56603372c9
commit 52e270ebf7
13 changed files with 286 additions and 67 deletions

View File

@@ -19,6 +19,8 @@ public:
COsKeyState(int key, bool down, bool released, bool repeat, bool unk)
: x0_key(key), x4_down(down), x4_released(released), x4_repeat(repeat), x4_unk(unk) {}
bool IsPressed() const { return x4_down; }
bool JustPressed() const { return x4_unk && x4_down; }
private:
int x0_key;
short x4_down : 1;