mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-26 06:22:17 -08:00
Disable keyboard option on iOS
This commit is contained in:
parent
2fec2156f6
commit
b6ed5fbd6f
1 changed files with 9 additions and 7 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue