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){
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: