Disable keyboard option on iOS

This commit is contained in:
Anuken
2021-07-25 08:41:06 -04:00
parent 2fec2156f6
commit b6ed5fbd6f

View File

@@ -292,13 +292,15 @@ public class SettingsMenuDialog extends Dialog{
if(mobile){ if(mobile){
game.checkPref("autotarget", true); game.checkPref("autotarget", true);
game.checkPref("keyboard", false, val -> { if(!ios){
control.setInput(val ? new DesktopInput() : new MobileInput()); game.checkPref("keyboard", false, val -> {
input.setUseKeyboard(val); control.setInput(val ? new DesktopInput() : new MobileInput());
}); input.setUseKeyboard(val);
if(Core.settings.getBool("keyboard")){ });
control.setInput(new DesktopInput()); if(Core.settings.getBool("keyboard")){
input.setUseKeyboard(true); control.setInput(new DesktopInput());
input.setUseKeyboard(true);
}
} }
} }
//the issue with touchscreen support on desktop is that: //the issue with touchscreen support on desktop is that: