Added a check to keep the cursor active when entering a savegame name on backends that provide a virtual keyboard

svn-id: r29578
This commit is contained in:
Paul Gilbert 2007-11-20 12:48:59 +00:00
parent 724d99b74f
commit 2393e87a7a

View File

@ -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;
}