Testing keyboard controls on iOS

This commit is contained in:
Anuken 2025-07-22 17:26:25 -04:00
parent 17a5b2f387
commit 05267a3f40
2 changed files with 9 additions and 12 deletions

View file

@ -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

View file

@ -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