Fixed pause key on Windows (thanks Mikhail!)

main
Sam Lantinga 2024-01-10 06:36:02 -08:00
parent d766f68cb3
commit b5bc64aa55
1 changed files with 3 additions and 0 deletions

View File

@ -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);