mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-12 05:41:10 +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)
|
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
Block a user