From ca781b7389a52ea6515aa459d308044cfa151701 Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Mon, 23 Dec 2019 18:03:06 +0100 Subject: 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. --- engines/bladerunner/ui/ui_input_box.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines/bladerunner') 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) { -- cgit v1.2.3