Update rcore.c
This commit is contained in:
parent
9a9535d9e5
commit
5b1f23375f
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user