(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

@@ -404,6 +404,7 @@ static void QZ_MouseMovedEvent(int x, int y)
_cursor.pos.y = y;
_cursor.dirty = true;
}
HandleMouseEvents();
}
@@ -417,6 +418,7 @@ static void QZ_MouseButtonEvent(int button, BOOL down)
_left_button_down = false;
_left_button_clicked = false;
}
HandleMouseEvents();
break;
case 1:
@@ -426,6 +428,7 @@ static void QZ_MouseButtonEvent(int button, BOOL down)
} else {
_right_button_down = false;
}
HandleMouseEvents();
break;
}
}