Replace _input with _unhandled_input

This commit is contained in:
Aaron Franke
2020-06-08 22:43:19 -04:00
parent d1ed6dbd82
commit 5f1905e0d6
19 changed files with 91 additions and 28 deletions

View File

@@ -25,10 +25,10 @@ func _process(delta):
func _input(event):
if (event is InputEventMouseMotion):
if event is InputEventMouseMotion:
r_pos = -event.relative
if (event.is_action("ui_cancel") and event.is_pressed() and !event.is_echo()):
if event.is_action("ui_cancel") and event.is_pressed() and !event.is_echo():
if (state == STATE_GRAB):
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
state = STATE_MENU