5 func _input(event: InputEvent) -> void:
6 if event.is_action_pressed("left_click"):
7 Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
8 elif event.is_action_pressed("ui_cancel"):
9 if Input.mouse_mode == Input.MOUSE_MODE_VISIBLE:
12 Input.mouse_mode = Input.MOUSE_MODE_VISIBLE