diff options
author | Paul Gilbert | 2007-11-20 12:48:59 +0000 |
---|---|---|
committer | Paul Gilbert | 2007-11-20 12:48:59 +0000 |
commit | 2393e87a7a3d76e7a86896e585a1f82479a2cf47 (patch) | |
tree | d4c16a2bf246113e54ee4093ec58cef77714e7b3 | |
parent | 724d99b74f83d6dce642881c51e879cd867031c9 (diff) | |
download | scummvm-rg350-2393e87a7a3d76e7a86896e585a1f82479a2cf47.tar.gz scummvm-rg350-2393e87a7a3d76e7a86896e585a1f82479a2cf47.tar.bz2 scummvm-rg350-2393e87a7a3d76e7a86896e585a1f82479a2cf47.zip |
Added a check to keep the cursor active when entering a savegame name on backends that provide a virtual keyboard
svn-id: r29578
-rw-r--r-- | engines/lure/surface.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/engines/lure/surface.cpp b/engines/lure/surface.cpp index b4849ec3dd..c241a6551a 100644 --- a/engines/lure/surface.cpp +++ b/engines/lure/surface.cpp @@ -408,7 +408,9 @@ bool Surface::getString(Common::String &line, int maxSize, bool isNumeric, bool bool abortFlag = false; bool refreshFlag = false; - mouse.cursorOff(); + bool vKbdFlag = g_system->hasFeature(OSystem::kFeatureVirtualKeyboard); + if (!vKbdFlag) + mouse.cursorOff(); // Insert a cursor character at the end of the string newLine.insertChar('_', newLine.size()); @@ -437,7 +439,8 @@ bool Surface::getString(Common::String &line, int maxSize, bool isNumeric, bool screen.update(); newLine.deleteLastChar(); line = newLine; - mouse.cursorOn(); + if (!vKbdFlag) + mouse.cursorOn(); return true; } else if (keycode == Common::KEYCODE_ESCAPE) { @@ -471,7 +474,9 @@ bool Surface::getString(Common::String &line, int maxSize, bool isNumeric, bool } } - mouse.cursorOn(); + if (!vKbdFlag) + mouse.cursorOn(); + return false; } |