Skip to content

Commit

Permalink
Fixes for repeating keys
Browse files Browse the repository at this point in the history
  • Loading branch information
jalsol committed Jul 18, 2023
1 parent bf2ad9d commit 3464441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -5273,7 +5273,7 @@ static void KeyCallback(GLFWwindow *window, int key, int scancode, int action, i
else CORE.Input.Keyboard.currentKeyState[key] = 1;

// Check if there is space available in the key queue
if ((CORE.Input.Keyboard.keyPressedQueueCount < MAX_KEY_PRESSED_QUEUE) && (action == GLFW_PRESS))
if ((CORE.Input.Keyboard.keyPressedQueueCount < MAX_KEY_PRESSED_QUEUE) && (action == GLFW_PRESS || action == GLFW_REPEAT))
{
// Add character to the queue
CORE.Input.Keyboard.keyPressedQueue[CORE.Input.Keyboard.keyPressedQueueCount] = key;
Expand Down

0 comments on commit 3464441

Please sign in to comment.