pub fn update_window_hits(
pointers: Query<'_, '_, (&PointerId, &PointerLocation)>,
output_events: EventWriter<'_, PointerHits>,
)
Expand description
Generates pointer hit events for window entities.
A pointer is treated as hitting a window when it is located on that window. The order of the hit event is negative infinity, meaning it should appear behind all other entities.
The depth of the hit will be listed as zero.