]> Untitled Git - william-skin.git/blob - test/test.gd
ac0fdeeed1681eceb6344bc27fcc769f8029405d
[william-skin.git] / test / test.gd
1 extends Node3D
2
3
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:
9                         get_tree().quit()
10                 else:
11                         Input.mouse_mode = Input.MOUSE_MODE_VISIBLE