feat: change camera rotation to be always active when mouse is captured

This commit is contained in:
null
2026-05-12 17:19:34 -05:00
parent 2907fabe85
commit ffee63dc57
4 changed files with 17 additions and 22 deletions
@@ -17,8 +17,10 @@ func _toggle_menu():
# Center the menu on the mouse or screen
global_position = get_viewport().get_mouse_position()
_animate_menu(true)
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
else:
_animate_menu(false)
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
func _arrange_buttons():
var buttons = get_children().filter(func(child): return child is Control)