Function bevy_picking_selection::send_selection_events

source ยท
pub fn send_selection_events(
    settings: Res<'_, SelectionPluginSettings>,
    pointer_down: EventReader<'_, '_, Pointer<Down>>,
    presses: EventReader<'_, '_, InputPress>,
    pointer_click: EventReader<'_, '_, Pointer<Click>>,
    pointers: Query<'_, '_, (&PointerId, &PointerMultiselect, &PointerLocation)>,
    no_deselect: Query<'_, '_, &NoDeselect>,
    selectables: Query<'_, '_, (Entity, &PickSelection)>,
    selections: EventWriter<'_, Pointer<Select>>,
    deselections: EventWriter<'_, Pointer<Deselect>>,
)
Expand description

Determines which entities have been selected or deselected, and sends Select and Deselect events corresponding to these state changes.