diff options
author | Eugene Sandulenko | 2006-03-23 03:40:23 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-03-23 03:40:23 +0000 |
commit | 6faa76d28758e9bea6e2cbfb8c7fa985c4bed1d5 (patch) | |
tree | 5c94e5ef4e7fbc5444bc6b7872f58818b6239fd8 /engines/cine/main_loop.cpp | |
parent | fced8df1621a44c2cfd94073db684e01d0ed1a2e (diff) | |
download | scummvm-rg350-6faa76d28758e9bea6e2cbfb8c7fa985c4bed1d5.tar.gz scummvm-rg350-6faa76d28758e9bea6e2cbfb8c7fa985c4bed1d5.tar.bz2 scummvm-rg350-6faa76d28758e9bea6e2cbfb8c7fa985c4bed1d5.zip |
Made mouse more responsive
svn-id: r21413
Diffstat (limited to 'engines/cine/main_loop.cpp')
-rw-r--r-- | engines/cine/main_loop.cpp | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/engines/cine/main_loop.cpp b/engines/cine/main_loop.cpp index 1a90a1af9f..24227f169c 100644 --- a/engines/cine/main_loop.cpp +++ b/engines/cine/main_loop.cpp @@ -41,7 +41,7 @@ uint16 mouseLeft = 0; uint16 mouseUpdateStatus; uint16 dummyU16; -void manageEvents(void) { +void manageEvents(int count) { OSystem::Event event; while (g_system->pollEvent(event)) { @@ -64,11 +64,20 @@ void manageEvents(void) { } } - mouseData.left = mouseLeft; - mouseData.right = mouseRight; + if (count) { + mouseData.left = mouseLeft; + mouseData.right = mouseRight; + mouseLeft = 0; + mouseRight = 0; + } + + int i; - mouseLeft = 0; - mouseRight = 0; + for (i = 0; i < count; i++) { + g_system->updateScreen(); + g_system->delayMillis(10); + manageEvents(0); + } } void getMouseData(uint16 param, uint16 *pButton, uint16 *pX, uint16 *pY) { |