aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/keyboard.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2016-02-03 02:21:07 +0100
committerMartin Kiewitz2016-02-03 02:21:07 +0100
commit778c1ddb69bb45b6992fdc9b8fff6b2c8d3e22ac (patch)
tree51c8437a6c8eab0bd70ef313d71a562f20fca22e /engines/agi/keyboard.cpp
parentc2038e00d001c93a37028864ad661b89377686c9 (diff)
downloadscummvm-rg350-778c1ddb69bb45b6992fdc9b8fff6b2c8d3e22ac.tar.gz
scummvm-rg350-778c1ddb69bb45b6992fdc9b8fff6b2c8d3e22ac.tar.bz2
scummvm-rg350-778c1ddb69bb45b6992fdc9b8fff6b2c8d3e22ac.zip
AGI: Cycle event processing changed
processEvents() renamed to processScummVMEvents() mainCycle() renamed to processAGIEvents() have.key now sets up an inner loop and calls processAGIEvents() to avoid any further cycle work processing
Diffstat (limited to 'engines/agi/keyboard.cpp')
-rw-r--r--engines/agi/keyboard.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agi/keyboard.cpp b/engines/agi/keyboard.cpp
index dd850d92f8..1809d579e7 100644
--- a/engines/agi/keyboard.cpp
+++ b/engines/agi/keyboard.cpp
@@ -62,7 +62,7 @@ const uint8 scancodeTable[26] = {
44 // Z
};
-void AgiEngine::processEvents() {
+void AgiEngine::processScummVMEvents() {
Common::Event event;
int key = 0;
@@ -569,7 +569,7 @@ int AgiEngine::waitAnyKey() {
}
bool AgiEngine::isKeypress() {
- processEvents();
+ processScummVMEvents();
return _keyQueueStart != _keyQueueEnd;
}