summaryrefslogtreecommitdiffstats
path: root/touch_screen_ui.gd
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-11-21 21:38:49 +0200
committerJan Tuomi <jan@jantuomi.fi>2025-11-21 21:39:07 +0200
commit6824649c8961b8aa695b6be805401fa357a61793 (patch)
tree0441c52355be55518cd74a08b363740d78a093df /touch_screen_ui.gd
parent242dec6cb636be957fe1c13415762f1e204deef7 (diff)
Improve map
Diffstat (limited to 'touch_screen_ui.gd')
-rw-r--r--touch_screen_ui.gd7
1 files changed, 7 insertions, 0 deletions
diff --git a/touch_screen_ui.gd b/touch_screen_ui.gd
new file mode 100644
index 0000000..0da7f1c
--- /dev/null
+++ b/touch_screen_ui.gd
@@ -0,0 +1,7 @@
+extends CanvasLayer
+
+@export var desktop_visible: bool
+
+func _ready() -> void:
+ if not DisplayServer.is_touchscreen_available():
+ visible = desktop_visible