mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-05 23:40:07 +01:00
Replace _input with _unhandled_input
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user