aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Bacca2004-03-02 19:47:17 +0000
committerNicolas Bacca2004-03-02 19:47:17 +0000
commit30d169d2be86f18928800d04c00b4e4e2b59fa12 (patch)
treeec86cc9e6fc5293bb77e1bf3af92a2fad5471dee
parent8f5c96d963bd5fce0a66f6643a64f82a6e73d271 (diff)
downloadscummvm-rg350-30d169d2be86f18928800d04c00b4e4e2b59fa12.tar.gz
scummvm-rg350-30d169d2be86f18928800d04c00b4e4e2b59fa12.tar.bz2
scummvm-rg350-30d169d2be86f18928800d04c00b4e4e2b59fa12.zip
Display keyboard when saving
svn-id: r13151
-rw-r--r--sword1/control.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/sword1/control.cpp b/sword1/control.cpp
index b28e3ab62c..f5bc4b2259 100644
--- a/sword1/control.cpp
+++ b/sword1/control.cpp
@@ -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;