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

@ -32,7 +32,7 @@ typedef struct
HBITMAP hbm;
WNDPROC wndproc;
SDL_bool created;
int mouse_pressed;
Uint32 mouse_button_flags;
struct SDL_VideoData *videodata;
} SDL_WindowData;