bevy/crates/bevy_picking/src
Miles Silberling-Cook 6e849a178a
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 21:18:18 +01:00
..
mesh_picking Mesh picking fixes (#16110) 2024-10-27 21:18:18 +01: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 21:18:18 +01:00
focus.rs Rename the Pickable component and fix incorrect documentation (#15707) 2024-10-07 17:09:57 +00:00
input.rs Migrate bevy picking (#15690) 2024-10-07 16:26:37 +00:00
lib.rs Emit picking event streams (#16105) 2024-10-27 21:18:18 +01:00
pointer.rs Add read-only access to PointerInteraction (#15964) 2024-10-16 21:21:19 +00:00