File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3516,7 +3516,7 @@ int GetKeyPressed(void)
3516
3516
CORE .Input .Keyboard .keyPressedQueue [i ] = CORE .Input .Keyboard .keyPressedQueue [i + 1 ];
3517
3517
3518
3518
// Reset last character in the queue
3519
- CORE .Input .Keyboard .keyPressedQueue [CORE .Input .Keyboard .keyPressedQueueCount ] = 0 ;
3519
+ CORE .Input .Keyboard .keyPressedQueue [CORE .Input .Keyboard .keyPressedQueueCount - 1 ] = 0 ;
3520
3520
CORE .Input .Keyboard .keyPressedQueueCount -- ;
3521
3521
}
3522
3522
@@ -3538,7 +3538,7 @@ int GetCharPressed(void)
3538
3538
CORE .Input .Keyboard .charPressedQueue [i ] = CORE .Input .Keyboard .charPressedQueue [i + 1 ];
3539
3539
3540
3540
// Reset last character in the queue
3541
- CORE .Input .Keyboard .charPressedQueue [CORE .Input .Keyboard .charPressedQueueCount ] = 0 ;
3541
+ CORE .Input .Keyboard .charPressedQueue [CORE .Input .Keyboard .charPressedQueueCount - 1 ] = 0 ;
3542
3542
CORE .Input .Keyboard .charPressedQueueCount -- ;
3543
3543
}
3544
3544
@@ -5372,7 +5372,7 @@ static void CharCallback(GLFWwindow *window, unsigned int key)
5372
5372
// Ref: https://www.glfw.org/docs/latest/input_guide.html#input_char
5373
5373
5374
5374
// Check if there is space available in the queue
5375
- if (CORE .Input .Keyboard .charPressedQueueCount < MAX_KEY_PRESSED_QUEUE )
5375
+ if (CORE .Input .Keyboard .charPressedQueueCount < MAX_CHAR_PRESSED_QUEUE )
5376
5376
{
5377
5377
// Add character to the queue
5378
5378
CORE .Input .Keyboard .charPressedQueue [CORE .Input .Keyboard .charPressedQueueCount ] = key ;
You can’t perform that action at this time.
0 commit comments