mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01: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 New Issue
Block a user