diff options
author | Nicolas Bacca | 2004-03-02 19:47:17 +0000 |
---|---|---|
committer | Nicolas Bacca | 2004-03-02 19:47:17 +0000 |
commit | 30d169d2be86f18928800d04c00b4e4e2b59fa12 (patch) | |
tree | ec86cc9e6fc5293bb77e1bf3af92a2fad5471dee | |
parent | 8f5c96d963bd5fce0a66f6643a64f82a6e73d271 (diff) | |
download | scummvm-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.cpp | 9 |
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; |