bevy/crates/bevy_picking/src
Miles Silberling-Cook 7451900e71
Emit picking event streams (#16105)
# Objective

In `bevy_mod_picking` events are accessible through event listeners or
`EventReader`s. When I replaced event listeners with observers, I
removed the `EventReader` for simplicity. This adds it back.

## Solution

All picking events are now properly registered, and can be accessed
through `EventReader<Pointer<E>>`. `Pointer` now tracks the entity the
event targeted initially, and this can also be helpful in observers
(which don't currently do this).

## Testing

The picking examples run fine. This shouldn't really change anything.

---------

Co-authored-by: Aevyrie <aevyrie@gmail.com>
2024-10-27 19:05:31 +00:00
..
mesh_picking Mesh picking fixes (#16110) 2024-10-27 19:03:48 +00:00
backend.rs fix: add reflect to SceneInstanceReady and other observers/events (#16018) 2024-10-20 13:51:41 +00:00
events.rs Emit picking event streams (#16105) 2024-10-27 19:05:31 +00:00
focus.rs
input.rs
lib.rs Emit picking event streams (#16105) 2024-10-27 19:05:31 +00:00
pointer.rs Add read-only access to PointerInteraction (#15964) 2024-10-16 21:21:19 +00:00