Input_event signal never triggers once node is made child of a window

Godot Version

v4.5.1

Question

Starting with a CharacterBody2D and a collision shape, I am able to get the input_event signal to detect mouse events as expected. However, once I move the CharacterBody2D to be the child of a Window, input_event no longer works. I tried a minimal working example and was not able to find what node is absorbing the mouse events. Mouse movement and click events will still show up in _input. Click events can be polled for using Input in _process().

I can build a mouse input system using _input() if necessary but would prefer to avoid reinventing the wheel. I’m also curious what is actually happening to the events.

Why would you do this? You don’t need Window objects in your game at all. What is it you are trying to accomplish?

It is OK if you don’t know the answer

Enable Viewport::physics_object_picking for the window.

1 Like

@normalized gave you the answer. I’m just trying to get you to think about your architecture.