From b5bc64aa553fe12d09fe2821eace14ea5b948bd9 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 10 Jan 2024 06:36:02 -0800 Subject: [PATCH] Fixed pause key on Windows (thanks Mikhail!) --- src/video/windows/SDL_windowsevents.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/video/windows/SDL_windowsevents.c b/src/video/windows/SDL_windowsevents.c index 63bc28a76..f9d1c0211 100644 --- a/src/video/windows/SDL_windowsevents.c +++ b/src/video/windows/SDL_windowsevents.c @@ -162,6 +162,9 @@ static SDL_Scancode WindowsScanCodeToSDLScanCode(LPARAM lParam, WPARAM wParam) if (scanCode != 0) { if ((keyFlags & KF_EXTENDED) == KF_EXTENDED) { scanCode = MAKEWORD(scanCode, 0xe0); + } else if (scanCode == 0x45) { + /* Pause */ + scanCode = 0xe046; } } else { Uint16 vkCode = LOWORD(wParam);