Fixed pause key on Windows (thanks Mikhail!)
This commit is contained in:
parent
d766f68cb3
commit
b5bc64aa55
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue