diff --git a/src/components/gui/InputEmit.gd b/src/components/gui/InputEmit.gd index d27df87..9f3baa8 100644 --- a/src/components/gui/InputEmit.gd +++ b/src/components/gui/InputEmit.gd @@ -1,11 +1,12 @@ extends InputEventAction class_name InputEmit -var scene func emit(props: Dictionary): + var scene scene = props.get("scene") if scene == null: + push_warning("discarding input event") return self action = props.action pressed = props.get("pressed", true)