Enable screen keyboard on android even if there is no touch device.

It may be still useful for gamepad.
This commit is contained in:
Deve 2018-07-11 22:41:22 +02:00
parent 30b1799b6e
commit ec25a9d368

View File

@ -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;