mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-11 17:12:31 +00:00
Fixed pause key on Windows (thanks Mikhail!)
This commit is contained in:
@@ -162,6 +162,9 @@ static SDL_Scancode WindowsScanCodeToSDLScanCode(LPARAM lParam, WPARAM wParam)
|
|||||||
if (scanCode != 0) {
|
if (scanCode != 0) {
|
||||||
if ((keyFlags & KF_EXTENDED) == KF_EXTENDED) {
|
if ((keyFlags & KF_EXTENDED) == KF_EXTENDED) {
|
||||||
scanCode = MAKEWORD(scanCode, 0xe0);
|
scanCode = MAKEWORD(scanCode, 0xe0);
|
||||||
|
} else if (scanCode == 0x45) {
|
||||||
|
/* Pause */
|
||||||
|
scanCode = 0xe046;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Uint16 vkCode = LOWORD(wParam);
|
Uint16 vkCode = LOWORD(wParam);
|
||||||
|
|||||||
Reference in New Issue
Block a user