Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows

This commit is contained in:
Louis M 2023-11-13 13:06:07 -05:00 committed by Sam Lantinga
parent 1de85491e1
commit 925362a2fc

View file

@ -189,7 +189,7 @@ static SDL_Scancode VKeytoScancode(WPARAM vkey)
case VK_BROWSER_HOME:
return SDL_SCANCODE_AC_HOME;
case VK_VOLUME_MUTE:
return SDL_SCANCODE_AUDIOMUTE;
return SDL_SCANCODE_MUTE;
case VK_VOLUME_DOWN:
return SDL_SCANCODE_VOLUMEDOWN;
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_NUM, (GetKeyState(VK_NUMLOCK) & 0x0001) ? SDL_TRUE : SDL_FALSE);
SDL_ToggleModState(KMOD_SCROLL, (GetKeyState(VK_SCROLL) & 0x0001) ? SDL_TRUE : SDL_FALSE);
WIN_UpdateWindowICCProfile(data->window, SDL_TRUE);
} else {
RECT rect;