mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-10 00:25:28 +00:00
Fixed relative mode mouse events stopping if you click on the title bar
This commit is contained in:
parent
6ec14b7fda
commit
6fe6946a2f
1 changed files with 3 additions and 0 deletions
|
|
@ -542,6 +542,9 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|||
SDL_SendMouseMotion(data->window, 0, 0, center_x, center_y);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
/* We still need to update focus */
|
||||
SDL_SetMouseFocus(data->window);
|
||||
}
|
||||
}
|
||||
/* don't break here, fall through to check the wParam like the button presses */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue