diff --git a/.gitignore b/.gitignore index 0771e01..ed85a74 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ /build /temp +/out diff --git a/src/keyboard.cpp b/src/keyboard.cpp index d9a9736..2a4ccc8 100644 --- a/src/keyboard.cpp +++ b/src/keyboard.cpp @@ -229,10 +229,7 @@ int keystate(int key) if (key < 0 || key >= MAX_KEY_VCODE) { return -1; } - SHORT s = GetKeyState(key); - if (((USHORT)s & 0x8000) == 0) { - pg->keystatemap[key] = 0; - } + return pg->keystatemap[key]; }