mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 18:05:31 +00:00
Fixed processing WM_INPUT_DEVICE_CHANGE at startup
This commit is contained in:
parent
248fc75bd2
commit
37c9e4afa3
|
@ -631,7 +631,7 @@ static void
|
|||
RAWINPUT_GetPendingDeviceChanges(void)
|
||||
{
|
||||
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);
|
||||
DispatchMessage(&msg);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue