Use more appropriate input handling methods
This commit is contained in:
parent
931e01337f
commit
0d01de1a29
|
@ -87,7 +87,7 @@ public partial class Mission : Node3D
|
|||
}
|
||||
}
|
||||
|
||||
public override void _Input(InputEvent @event)
|
||||
public override void _ShortcutInput(InputEvent @event)
|
||||
{
|
||||
if (@event is InputEventKey keyEvent && keyEvent.Pressed)
|
||||
{
|
||||
|
|
|
@ -40,7 +40,7 @@ public partial class ResourceSelector : Control
|
|||
_CancelButton.Pressed += () => Visible = false;
|
||||
}
|
||||
|
||||
public override void _Input(InputEvent @event)
|
||||
public override void _UnhandledInput(InputEvent @event)
|
||||
{
|
||||
if (@event is InputEventKey keyEvent && keyEvent.Pressed)
|
||||
{
|
||||
|
|
|
@ -28,7 +28,7 @@ var _e = false
|
|||
var _shift = false
|
||||
var _alt = false
|
||||
|
||||
func _input(event):
|
||||
func _unhandled_input(event):
|
||||
# Receives mouse motion
|
||||
if event is InputEventMouseMotion:
|
||||
_mouse_position = event.relative
|
||||
|
|
Loading…
Reference in New Issue