mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 02:25:30 +00:00
Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows
This commit is contained in:
parent
1de85491e1
commit
925362a2fc
|
@ -189,7 +189,7 @@ static SDL_Scancode VKeytoScancode(WPARAM vkey)
|
||||||
case VK_BROWSER_HOME:
|
case VK_BROWSER_HOME:
|
||||||
return SDL_SCANCODE_AC_HOME;
|
return SDL_SCANCODE_AC_HOME;
|
||||||
case VK_VOLUME_MUTE:
|
case VK_VOLUME_MUTE:
|
||||||
return SDL_SCANCODE_AUDIOMUTE;
|
return SDL_SCANCODE_MUTE;
|
||||||
case VK_VOLUME_DOWN:
|
case VK_VOLUME_DOWN:
|
||||||
return SDL_SCANCODE_VOLUMEDOWN;
|
return SDL_SCANCODE_VOLUMEDOWN;
|
||||||
case VK_VOLUME_UP:
|
case VK_VOLUME_UP:
|
||||||
|
@ -500,7 +500,7 @@ static void WIN_UpdateFocus(SDL_Window *window, SDL_bool expect_focus)
|
||||||
SDL_ToggleModState(KMOD_CAPS, (GetKeyState(VK_CAPITAL) & 0x0001) ? SDL_TRUE : SDL_FALSE);
|
SDL_ToggleModState(KMOD_CAPS, (GetKeyState(VK_CAPITAL) & 0x0001) ? SDL_TRUE : SDL_FALSE);
|
||||||
SDL_ToggleModState(KMOD_NUM, (GetKeyState(VK_NUMLOCK) & 0x0001) ? SDL_TRUE : SDL_FALSE);
|
SDL_ToggleModState(KMOD_NUM, (GetKeyState(VK_NUMLOCK) & 0x0001) ? SDL_TRUE : SDL_FALSE);
|
||||||
SDL_ToggleModState(KMOD_SCROLL, (GetKeyState(VK_SCROLL) & 0x0001) ? SDL_TRUE : SDL_FALSE);
|
SDL_ToggleModState(KMOD_SCROLL, (GetKeyState(VK_SCROLL) & 0x0001) ? SDL_TRUE : SDL_FALSE);
|
||||||
|
|
||||||
WIN_UpdateWindowICCProfile(data->window, SDL_TRUE);
|
WIN_UpdateWindowICCProfile(data->window, SDL_TRUE);
|
||||||
} else {
|
} else {
|
||||||
RECT rect;
|
RECT rect;
|
||||||
|
|
Loading…
Reference in a new issue