(svn r7157) -Fix [FS#221, SF1168820]: Some mouse events possibly lost under high CPU load, handle

mouse input right away instead of waiting for GameLoop. (KUDr)
This commit is contained in:
Darkvater
2006-11-15 21:01:19 +00:00
parent b713974cd8
commit a353e354fd
5 changed files with 66 additions and 27 deletions

View File

@@ -325,6 +325,7 @@ static int PollEvent(void)
_cursor.pos.y = ev.motion.y;
_cursor.dirty = true;
}
HandleMouseEvents();
break;
case SDL_MOUSEBUTTONDOWN:
@@ -347,6 +348,7 @@ static int PollEvent(void)
default: break;
}
HandleMouseEvents();
break;
case SDL_MOUSEBUTTONUP:
@@ -360,6 +362,7 @@ static int PollEvent(void)
} else if (ev.button.button == SDL_BUTTON_RIGHT) {
_right_button_down = false;
}
HandleMouseEvents();
break;
case SDL_ACTIVEEVENT: