Skip to content

Commit

Permalink
Merge pull request #20 from endlessm/hide-instructions-on-touch-devices
Browse files Browse the repository at this point in the history
Hide instructions on touch devices
  • Loading branch information
manuq authored Dec 16, 2024
2 parents d902078 + b2949a4 commit ca69811
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/hud.gd
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ func _ready():
Global.timer_added.connect(_on_timer_added)

Input.joy_connection_changed.connect(_on_joy_connection_changed)
# TODO: hide entirely if touch controls are visible?
if DisplayServer.is_touchscreen_available():
%Start.hide()


func _on_joy_connection_changed(index: int, connected: bool):
Expand Down

0 comments on commit ca69811

Please sign in to comment.