Fixed processing WM_INPUT_DEVICE_CHANGE at startup

This commit is contained in:
Sam Lantinga 2020-11-27 06:03:15 -08:00
parent 248fc75bd2
commit 37c9e4afa3
1 changed files with 1 additions and 1 deletions

View File

@ -631,7 +631,7 @@ static void
RAWINPUT_GetPendingDeviceChanges(void) RAWINPUT_GetPendingDeviceChanges(void)
{ {
MSG msg; MSG msg;
while (PeekMessage(&msg, SDL_HelperWindow, WM_INPUT_DEVICE_CHANGE, WM_INPUT_DEVICE_CHANGE, PM_REMOVE)) { while (PeekMessage(&msg, SDL_HelperWindow, WM_INPUT_DEVICE_CHANGE, WM_INPUT_DEVICE_CHANGE + 1, PM_REMOVE)) {
TranslateMessage(&msg); TranslateMessage(&msg);
DispatchMessage(&msg); DispatchMessage(&msg);
} }