Bläddra i källkod

Autorelease keys should go down when pressed.

Sam Lantinga 5 månader sedan
förälder
incheckning
c8a04eec06
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/events/SDL_keyboard.c

+ 1 - 1
src/events/SDL_keyboard.c

@@ -687,7 +687,7 @@ bool SDL_SendKeyboardKeyIgnoreModifiers(Uint64 timestamp, SDL_KeyboardID keyboar
 
 bool SDL_SendKeyboardKeyAutoRelease(Uint64 timestamp, SDL_Scancode scancode)
 {
-    return SDL_SendKeyboardKeyInternal(timestamp, KEYBOARD_AUTORELEASE, SDL_GLOBAL_KEYBOARD_ID, 0, scancode, false);
+    return SDL_SendKeyboardKeyInternal(timestamp, KEYBOARD_AUTORELEASE, SDL_GLOBAL_KEYBOARD_ID, 0, scancode, true);
 }
 
 void SDL_ReleaseAutoReleaseKeys(void)