From b6ed5fbd6fd63ade5c3f27c0e1e317f0aaa1fbf9 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 25 Jul 2021 08:41:06 -0400 Subject: [PATCH] Disable keyboard option on iOS --- .../mindustry/ui/dialogs/SettingsMenuDialog.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/core/src/mindustry/ui/dialogs/SettingsMenuDialog.java b/core/src/mindustry/ui/dialogs/SettingsMenuDialog.java index e291ace87d..64333796cf 100644 --- a/core/src/mindustry/ui/dialogs/SettingsMenuDialog.java +++ b/core/src/mindustry/ui/dialogs/SettingsMenuDialog.java @@ -292,13 +292,15 @@ public class SettingsMenuDialog extends Dialog{ if(mobile){ game.checkPref("autotarget", true); - game.checkPref("keyboard", false, val -> { - control.setInput(val ? new DesktopInput() : new MobileInput()); - input.setUseKeyboard(val); - }); - if(Core.settings.getBool("keyboard")){ - control.setInput(new DesktopInput()); - input.setUseKeyboard(true); + if(!ios){ + game.checkPref("keyboard", false, val -> { + control.setInput(val ? new DesktopInput() : new MobileInput()); + input.setUseKeyboard(val); + }); + if(Core.settings.getBool("keyboard")){ + control.setInput(new DesktopInput()); + input.setUseKeyboard(true); + } } } //the issue with touchscreen support on desktop is that: