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