Disable keyboard option on iOS
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user