mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-06 02:40:23 -08:00
Testing keyboard controls on iOS
This commit is contained in:
parent
17a5b2f387
commit
05267a3f40
2 changed files with 9 additions and 12 deletions
|
|
@ -306,18 +306,15 @@ public class SettingsMenuDialog extends BaseDialog{
|
||||||
|
|
||||||
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);
|
});
|
||||||
});
|
if(Core.settings.getBool("keyboard")){
|
||||||
if(Core.settings.getBool("keyboard")){
|
control.setInput(new DesktopInput());
|
||||||
control.setInput(new DesktopInput());
|
input.setUseKeyboard(true);
|
||||||
input.setUseKeyboard(true);
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
Core.settings.put("keyboard", false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
//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
|
||||||
|
|
|
||||||
|
|
@ -26,4 +26,4 @@ org.gradle.caching=true
|
||||||
org.gradle.internal.http.socketTimeout=100000
|
org.gradle.internal.http.socketTimeout=100000
|
||||||
org.gradle.internal.http.connectionTimeout=100000
|
org.gradle.internal.http.connectionTimeout=100000
|
||||||
android.enableR8.fullMode=false
|
android.enableR8.fullMode=false
|
||||||
archash=324275bb33
|
archash=8904174eec
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue