sdl - use the wParam and rawinput data for mouse state rather than just the message type, fixes missing mouse up events when alt-tabing out of the window

CR: SamL
This commit is contained in:
Sam Lantinga 2013-02-27 11:39:39 -08:00
parent ee24414406
commit f4e5303f46
3 changed files with 69 additions and 40 deletions

View file

@ -89,7 +89,7 @@ SetupWindowData(_THIS, SDL_Window * window, HWND hwnd, SDL_bool created)
data->hwnd = hwnd;
data->hdc = GetDC(hwnd);
data->created = created;
data->mouse_pressed = SDL_FALSE;
data->mouse_button_flags = 0;
data->videodata = videodata;
window->driverdata = data;