Skip to content

Commit

Permalink
A button now works like trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
silphendio committed Aug 22, 2024
1 parent 1817892 commit 1e22b85
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scenes/root.gd
Original file line number Diff line number Diff line change
@@ -143,6 +143,14 @@ func on_vr_button_pressed(hand, button):
if button == "by_button":
switch_hand(hand)
toggle_menu()

if button == "ax_button":
if is_menu_open():
# TODO: register down&up press separately
menu_view.press(true)
menu_view.press(false)
else:
video_node.toggle_pause()

func show_menu_pointer(active = true):
print("show menu pointer: ", active)

0 comments on commit 1e22b85

Please sign in to comment.