aboutsummaryrefslogtreecommitdiff
path: root/engines/testbed
diff options
context:
space:
mode:
authorEugene Sandulenko2016-09-04 16:24:03 +0200
committerEugene Sandulenko2016-09-04 16:24:03 +0200
commit1dc0411ff984d9944fbe777b003c929eb713d775 (patch)
tree04e1ae1fc412e356d7b106b4c8d1ca02eaea543b /engines/testbed
parent00a13baf84d25697f0086658726bbb63cfc27d5e (diff)
downloadscummvm-rg350-1dc0411ff984d9944fbe777b003c929eb713d775.tar.gz
scummvm-rg350-1dc0411ff984d9944fbe777b003c929eb713d775.tar.bz2
scummvm-rg350-1dc0411ff984d9944fbe777b003c929eb713d775.zip
TESTBED: Listen to events during mouse move test
Diffstat (limited to 'engines/testbed')
-rw-r--r--engines/testbed/graphics.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/testbed/graphics.cpp b/engines/testbed/graphics.cpp
index 4943a42284..afb1c5800a 100644
--- a/engines/testbed/graphics.cpp
+++ b/engines/testbed/graphics.cpp
@@ -650,9 +650,12 @@ TestExitStatus GFXtests::mouseMovements() {
g_system->updateScreen();
g_system->delayMillis(1000);
+ Common::Event event;
+
for (int i = 0; i <= 100; i++) {
g_system->delayMillis(20);
g_system->warpMouse(i, i);
+ g_system->getEventManager()->pollEvent(event);
g_system->updateScreen();
}