diff options
| author | ubkp <[email protected]> | 2023-11-30 06:09:57 -0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-30 10:09:57 +0100 |
| commit | bd81bdc24a2e896d641706fd23bb379d19cb2426 (patch) | |
| tree | 434d7f77577b5ee3a81cb0d740b967b040e9cb7f | |
| parent | e7a486fa81adac1833253c849ca73c5b3f7ef361 (diff) | |
| download | raylib-bd81bdc24a2e896d641706fd23bb379d19cb2426.tar.gz raylib-bd81bdc24a2e896d641706fd23bb379d19cb2426.zip | |
Fix IsKeyPressedRepeat() for PLATFORM_DRM direct input (#3583)
| -rw-r--r-- | src/platforms/rcore_drm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/platforms/rcore_drm.c b/src/platforms/rcore_drm.c index 46158899..a63790a6 100644 --- a/src/platforms/rcore_drm.c +++ b/src/platforms/rcore_drm.c @@ -1709,6 +1709,7 @@ static void PollKeyboardEvents(void) // Event interface: 'value' is the value the event carries. Either a relative change for EV_REL, // absolute new value for EV_ABS (joysticks ...), or 0 for EV_KEY for release, 1 for keypress and 2 for autorepeat CORE.Input.Keyboard.currentKeyState[keycode] = (event.value >= 1)? 1 : 0; + CORE.Input.Keyboard.keyRepeatInFrame[keycode] = (event.value == 2)? 1 : 0; if (event.value >= 1) { CORE.Input.Keyboard.keyPressedQueue[CORE.Input.Keyboard.keyPressedQueueCount] = keycode; // Register last key pressed |
