From 2393e87a7a3d76e7a86896e585a1f82479a2cf47 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 20 Nov 2007 12:48:59 +0000 Subject: [PATCH] Added a check to keep the cursor active when entering a savegame name on backends that provide a virtual keyboard svn-id: r29578 --- engines/lure/surface.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/engines/lure/surface.cpp b/engines/lure/surface.cpp index b4849ec3dd2..c241a6551a9 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; }