Update rcore.c

This commit is contained in:
Nickolas McDonald 2023-08-17 17:32:02 -04:00
parent 9a9535d9e5
commit 5b1f23375f

View File

@ -5172,7 +5172,7 @@ void SwapScreenBuffer(void)
static void RegisterCurrentKeyState(int key, bool state) static void RegisterCurrentKeyState(int key, bool state)
{ {
if (state && (CORE.Input.Keyboard.currentKeyState[key] < MAX_KEY_REPEAT)) CORE.Input.Keyboard.currentKeyState[key]++; if (state && (CORE.Input.Keyboard.currentKeyState[key] < MAX_KEY_REPEAT)) CORE.Input.Keyboard.currentKeyState[key]++;
else CORE.Input.Keyboard.currentKeyState[key] = 0; else if (!state) CORE.Input.Keyboard.currentKeyState[key] = 0;
} }
// Register previous keys states and remove unused key repeats // Register previous keys states and remove unused key repeats