소스 검색

Use the current timestamp for keyboard hook events

Fixes https://github.com/libsdl-org/SDL/issues/6771
Sam Lantinga 3 년 전
부모
커밋
cfa493c97f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/video/windows/SDL_windowsevents.c

+ 2 - 2
src/video/windows/SDL_windowsevents.c

@@ -693,9 +693,9 @@ WIN_KeyboardHookProc(int nCode, WPARAM wParam, LPARAM lParam)
     }
     }
 
 
     if (wParam == WM_KEYDOWN || wParam == WM_SYSKEYDOWN) {
     if (wParam == WM_KEYDOWN || wParam == WM_SYSKEYDOWN) {
-        SDL_SendKeyboardKey(WIN_GetEventTimestamp(), SDL_PRESSED, scanCode);
+        SDL_SendKeyboardKey(0, SDL_PRESSED, scanCode);
     } else {
     } else {
-        SDL_SendKeyboardKey(WIN_GetEventTimestamp(), SDL_RELEASED, scanCode);
+        SDL_SendKeyboardKey(0, SDL_RELEASED, scanCode);
 
 
         /* If the key was down prior to our hook being installed, allow the
         /* If the key was down prior to our hook being installed, allow the
            key up message to pass normally the first time. This ensures other
            key up message to pass normally the first time. This ensures other