From ec25a9d368570f3eadd6f7b1b58cf1c00ca86870 Mon Sep 17 00:00:00 2001 From: Deve Date: Wed, 11 Jul 2018 22:41:22 +0200 Subject: [PATCH] Enable screen keyboard on android even if there is no touch device. It may be still useful for gamepad. --- src/main_android.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main_android.cpp b/src/main_android.cpp index ab20b3817..d1bd87b48 100644 --- a/src/main_android.cpp +++ b/src/main_android.cpp @@ -40,15 +40,17 @@ void override_default_params() // Disable advanced lighting by default to make the game playable UserConfigParams::m_dynamic_lights = false; - // Enable touch steering and screen keyboard when touchscreen is available + // Enable multitouch device when touchscreen is available int32_t touch = AConfiguration_getTouchscreen(global_android_app->config); if (touch != ACONFIGURATION_TOUCHSCREEN_NOTOUCH) { UserConfigParams::m_multitouch_enabled = true; - UserConfigParams::m_screen_keyboard = 1; } + // Enable screen keyboard + UserConfigParams::m_screen_keyboard = 1; + // Set bigger fonts and buttons UserConfigParams::m_hidpi_enabled = true;