diff options
author | Thierry Crozat | 2019-12-23 18:03:06 +0100 |
---|---|---|
committer | Thierry Crozat | 2019-12-23 18:06:50 +0100 |
commit | ca781b7389a52ea6515aa459d308044cfa151701 (patch) | |
tree | bf75b3e2ccce9148c2164787ff002e5efc16f98e /engines/bladerunner | |
parent | 0b6ab63586aee51dadc558ecd2a492bf679e202e (diff) | |
download | scummvm-rg350-ca781b7389a52ea6515aa459d308044cfa151701.tar.gz scummvm-rg350-ca781b7389a52ea6515aa459d308044cfa151701.tar.bz2 scummvm-rg350-ca781b7389a52ea6515aa459d308044cfa151701.zip |
BLADERUNNER: Use virtual keyboard feature in save screen
This is used on platforms that have a virtual keyboard, such
as iOS, to show/hide the virtual keyboard when we expect text
input.
Diffstat (limited to 'engines/bladerunner')
-rw-r--r-- | engines/bladerunner/ui/ui_input_box.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/bladerunner/ui/ui_input_box.cpp b/engines/bladerunner/ui/ui_input_box.cpp index be12f941ee..6c60f7e140 100644 --- a/engines/bladerunner/ui/ui_input_box.cpp +++ b/engines/bladerunner/ui/ui_input_box.cpp @@ -27,6 +27,7 @@ #include "bladerunner/time.h" #include "common/keyboard.h" +#include "common/system.h" #include "graphics/surface.h" @@ -39,6 +40,7 @@ UIInputBox::UIInputBox(BladeRunnerEngine *vm, UIComponentCallback *valueChangedC _isVisible = true; _rect = rect; + g_system->setFeatureState(OSystem::kFeatureVirtualKeyboard, true); _maxLength = maxLength; setText(text); @@ -77,10 +79,12 @@ const Common::String &UIInputBox::getText() { void UIInputBox::show() { _isVisible = true; + g_system->setFeatureState(OSystem::kFeatureVirtualKeyboard, true); } void UIInputBox::hide() { _isVisible = false; + g_system->setFeatureState(OSystem::kFeatureVirtualKeyboard, false); } void UIInputBox::handleKeyDown(const Common::KeyState &kbd) { |