mirror of https://github.com/encounter/SDL.git
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)
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue