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