Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
[Bugfix] #548: Fixed an issue with the key state
Browse files Browse the repository at this point in the history
Increase the capacity of std::bitset
  • Loading branch information
cddjr committed Jul 1, 2023
1 parent 5e6c3e7 commit 085ddc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions user/keybinds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ static const std::map<uint8_t, const char*> KeyMap = {
{0xA3, "R CTRL"},
};

static std::bitset<0xFF> PrevKeyState;
static std::bitset<0xFF> KeyState;
static std::bitset<256> PrevKeyState;
static std::bitset<256> KeyState;

void KeyBinds::WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
{
Expand Down

0 comments on commit 085ddc0

Please sign in to comment.