summaryrefslogtreecommitdiffstats
path: root/touch_screen_ui.gd
diff options
context:
space:
mode:
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