aboutsummaryrefslogtreecommitdiff
path: root/backends/common/virtual-keyboard.cpp
diff options
context:
space:
mode:
authorStephen Kennedy2008-07-31 17:26:03 +0000
committerStephen Kennedy2008-07-31 17:26:03 +0000
commitf2e71ec6d6008c8ad33272df5d18f1b07455cef0 (patch)
tree471c26d959f0665e1ebb732896b151bc04215306 /backends/common/virtual-keyboard.cpp
parentad6563a57a17db297394503aa608106ac87f1a35 (diff)
downloadscummvm-rg350-f2e71ec6d6008c8ad33272df5d18f1b07455cef0.tar.gz
scummvm-rg350-f2e71ec6d6008c8ad33272df5d18f1b07455cef0.tar.bz2
scummvm-rg350-f2e71ec6d6008c8ad33272df5d18f1b07455cef0.zip
added display functionality to VirtualKeyboard to allow preview of key presses to be visible
svn-id: r33476
Diffstat (limited to 'backends/common/virtual-keyboard.cpp')
-rw-r--r--backends/common/virtual-keyboard.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/backends/common/virtual-keyboard.cpp b/backends/common/virtual-keyboard.cpp
index 60c0de2356..c852839871 100644
--- a/backends/common/virtual-keyboard.cpp
+++ b/backends/common/virtual-keyboard.cpp
@@ -151,7 +151,7 @@ void VirtualKeyboard::processAreaClick(const Common::String& area) {
}
void VirtualKeyboard::switchMode(Mode *newMode) {
- _kbdGUI->setKeyboardSurface(newMode->image, newMode->transparentColor);
+ _kbdGUI->initMode(newMode);
_currentMode = newMode;
}
@@ -267,8 +267,6 @@ void VirtualKeyboard::KeyPressQueue::insertKey(KeyState key) {
kp.key = key;
kp.strLen = keyStr.size();
_keys.insert(_keyPos, kp);
-
-
}
void VirtualKeyboard::KeyPressQueue::deleteKey() {
@@ -337,6 +335,10 @@ String VirtualKeyboard::KeyPressQueue::getString()
return _str + flags;
}
+uint VirtualKeyboard::KeyPressQueue::getInsertIndex() {
+ return _strPos;
+}
+
bool VirtualKeyboard::KeyPressQueue::hasStringChanged() {
bool ret = _strChanged;
_strChanged = false;