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,6 +292,7 @@ public class SettingsMenuDialog extends Dialog{
if(mobile){ if(mobile){
game.checkPref("autotarget", true); game.checkPref("autotarget", true);
if(!ios){
game.checkPref("keyboard", false, val -> { game.checkPref("keyboard", false, val -> {
control.setInput(val ? new DesktopInput() : new MobileInput()); control.setInput(val ? new DesktopInput() : new MobileInput());
input.setUseKeyboard(val); input.setUseKeyboard(val);
@@ -301,6 +302,7 @@ public class SettingsMenuDialog extends Dialog{
input.setUseKeyboard(true); input.setUseKeyboard(true);
} }
} }
}
//the issue with touchscreen support on desktop is that: //the issue with touchscreen support on desktop is that:
//1) I can't test it //1) I can't test it
//2) the SDL backend doesn't support multitouch //2) the SDL backend doesn't support multitouch