Fix "is mount_event" check in gui_in_3d to work with both 4 beta and 4 rc

This commit is contained in:
Kostas Mouratidis
2023-02-26 13:10:46 +01:00
parent e03d6abbc8
commit d059806f20
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ func _unhandled_input(event):
# Check if the event is a non-mouse/non-touch event
var is_mouse_event = false
for mouse_event in [InputEventMouseButton, InputEventMouseMotion, InputEventScreenDrag, InputEventScreenTouch]:
if event is mouse_event:
if is_instance_of(event, mouse_event):
is_mouse_event = true
break