mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 03:56:20 +00:00
Display keyboard when saving
svn-id: r13151
This commit is contained in:
parent
8f5c96d963
commit
30d169d2be
@ -261,8 +261,10 @@ uint8 Control::runPanel(void) {
|
||||
setupMainPanel();
|
||||
break;
|
||||
case BUTTON_SAVE_PANEL:
|
||||
if (fullRefresh)
|
||||
if (fullRefresh) {
|
||||
_system->setFeatureState(OSystem::kFeatureVirtualKeyboard, true);
|
||||
setupSaveRestorePanel(true);
|
||||
}
|
||||
if (_keyPressed)
|
||||
handleSaveKey(_keyPressed);
|
||||
break;
|
||||
@ -364,6 +366,7 @@ uint8 Control::handleButtonClick(uint8 id, uint8 mode, uint8 *retVal) {
|
||||
saveNameSelect(id, mode == BUTTON_SAVE_PANEL);
|
||||
else if (id == BUTTON_SAVE_RESTORE_OKAY) {
|
||||
if (mode == BUTTON_SAVE_PANEL) {
|
||||
_system->setFeatureState(OSystem::kFeatureVirtualKeyboard, false);
|
||||
if (saveToFile()) // don't go back to main panel if save fails.
|
||||
return BUTTON_MAIN_PANEL;
|
||||
} else {
|
||||
@ -372,8 +375,10 @@ uint8 Control::handleButtonClick(uint8 id, uint8 mode, uint8 *retVal) {
|
||||
return BUTTON_MAIN_PANEL;
|
||||
}
|
||||
}
|
||||
} else if (id == BUTTON_SAVE_CANCEL)
|
||||
} else if (id == BUTTON_SAVE_CANCEL) {
|
||||
_system->setFeatureState(OSystem::kFeatureVirtualKeyboard, false);
|
||||
return BUTTON_MAIN_PANEL; // mode down to main panel
|
||||
}
|
||||
break;
|
||||
case BUTTON_VOLUME_PANEL:
|
||||
return id;
|
||||
|
Loading…
Reference in New Issue
Block a user