aboutsummaryrefslogtreecommitdiff
path: root/backends/common
diff options
context:
space:
mode:
authorStephen Kennedy2008-07-09 23:05:47 +0000
committerStephen Kennedy2008-07-09 23:05:47 +0000
commit48ed272c8d56c322c291dc3e20a53f48e8c33190 (patch)
treeb09972fac1f2d722c4b2a71ed59ce1ac4d3458b0 /backends/common
parent1f0b3ceb3633c75cd40f1eaacddeb73b5b8ec555 (diff)
downloadscummvm-rg350-48ed272c8d56c322c291dc3e20a53f48e8c33190.tar.gz
scummvm-rg350-48ed272c8d56c322c291dc3e20a53f48e8c33190.tar.bz2
scummvm-rg350-48ed272c8d56c322c291dc3e20a53f48e8c33190.zip
- added system delay to event loop, to reduce CPU usage
svn-id: r32979
Diffstat (limited to 'backends/common')
-rw-r--r--backends/common/virtual-keyboard.cpp4
-rw-r--r--backends/common/virtual-keyboard.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/backends/common/virtual-keyboard.cpp b/backends/common/virtual-keyboard.cpp
index 0259bed5b9..37fa922bd1 100644
--- a/backends/common/virtual-keyboard.cpp
+++ b/backends/common/virtual-keyboard.cpp
@@ -296,9 +296,9 @@ void VirtualKeyboard::runLoop() {
default:
break;
}
- // TODO - remove this line ?
- //if (!_displaying) break;
}
+ // Delay for a moment
+ _system->delayMillis(10);
}
// push keydown & keyup events into the event manager
diff --git a/backends/common/virtual-keyboard.h b/backends/common/virtual-keyboard.h
index fe5029558d..74c3043a4c 100644
--- a/backends/common/virtual-keyboard.h
+++ b/backends/common/virtual-keyboard.h
@@ -41,8 +41,6 @@ namespace Common {
class VirtualKeyboardParser;
-
-
class VirtualKeyboard {
/** Type of key event */