From 48ed272c8d56c322c291dc3e20a53f48e8c33190 Mon Sep 17 00:00:00 2001 From: Stephen Kennedy Date: Wed, 9 Jul 2008 23:05:47 +0000 Subject: - added system delay to event loop, to reduce CPU usage svn-id: r32979 --- backends/common/virtual-keyboard.cpp | 4 ++-- backends/common/virtual-keyboard.h | 2 -- 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 */ -- cgit v1.2.3