mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-19 00:01:46 +00:00
Don't need to use raw input to track the mouse during mouse capture (thanks Brick!)
This commit is contained in:
@@ -953,18 +953,6 @@ void WIN_OnWindowEnter(_THIS, SDL_Window * window)
|
||||
if (window->flags & SDL_WINDOW_ALWAYS_ON_TOP) {
|
||||
WIN_SetWindowPositionInternal(_this, window, SWP_NOCOPYBITS | SWP_NOSIZE | SWP_NOACTIVATE);
|
||||
}
|
||||
|
||||
#ifdef WM_MOUSELEAVE
|
||||
{
|
||||
TRACKMOUSEEVENT trackMouseEvent;
|
||||
|
||||
trackMouseEvent.cbSize = sizeof(TRACKMOUSEEVENT);
|
||||
trackMouseEvent.dwFlags = TME_LEAVE;
|
||||
trackMouseEvent.hwndTrack = data->hwnd;
|
||||
|
||||
TrackMouseEvent(&trackMouseEvent);
|
||||
}
|
||||
#endif /* WM_MOUSELEAVE */
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user