Player changes + projectile fixes2

This commit is contained in:
dingo
2026-01-19 15:47:59 -05:00
parent cefa1cf716
commit 5bc1c6e0f9
4 changed files with 13 additions and 5 deletions
+4 -1
View File
@@ -252,7 +252,10 @@ func _toggle_settings_panel():
func _get_mobile_controls_enabled() -> bool:
# Check if mobile controls are enabled (stored in config or default to true on mobile)
if OS.has_feature("mobile"):
# Detect touch-capable devices (mobile native or web on tablets/phones)
var is_touch_device = OS.has_feature("mobile") or DisplayServer.is_touchscreen_available()
if is_touch_device:
return ProjectSettings.get_setting("application/config/mobile_controls_enabled", true)
return ProjectSettings.get_setting("application/config/mobile_controls_enabled", false)