mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-30 23:43:10 +00:00
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:
parent
724d99b74f
commit
2393e87a7a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user