Fixing a comparison with the wrong member.

Discovered while looking at SDL 2.0 code.
This commit is contained in:
Mark de Wever 2013-03-02 21:17:22 +00:00
parent 870ab27990
commit 074f6432a4

View file

@ -98,7 +98,7 @@ void controller_base::handle_event(const SDL_Event& event)
}
break;
case SDL_ACTIVEEVENT:
if (event.active.type == SDL_APPMOUSEFOCUS && event.active.gain == 0) {
if (event.active.state == SDL_APPMOUSEFOCUS && event.active.gain == 0) {
if (get_mouse_handler_base().is_dragging()) {
//simulate mouse button up when the app has lost mouse focus
//this should be a general fix for the issue when the mouse