summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2021-04-09 00:21:56 +0200
committerRay <[email protected]>2021-04-09 00:21:56 +0200
commit8a8948780ee1c44f6e732d0b87732542cf32b3a2 (patch)
tree16495c903d744801c17f2a533819e30685db93ac /src
parent49e17044c97b37fdd2f7dc8ac6291261b2925dbb (diff)
downloadraylib-8a8948780ee1c44f6e732d0b87732542cf32b3a2.tar.gz
raylib-8a8948780ee1c44f6e732d0b87732542cf32b3a2.zip
REVIEWED: GetKeyPressed() #1712
Diffstat (limited to 'src')
-rw-r--r--src/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index 2cce9f42..cf8340f7 100644
--- a/src/core.c
+++ b/src/core.c
@@ -5031,7 +5031,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_RELEASE))
+ if ((CORE.Input.Keyboard.keyPressedQueueCount < MAX_KEY_PRESSED_QUEUE) && (action == GLFW_PRESS))
{
// Add character to the queue
CORE.Input.Keyboard.keyPressedQueue[CORE.Input.Keyboard.keyPressedQueueCount] = key;