Skip to main content

queue_state_events

Function queue_state_events 

Source
pub fn queue_state_events(
    pending: ResMut<'_, PendingDomEvents>,
    edits: MessageReader<'_, '_, TextEditApplied>,
    commits: MessageReader<'_, '_, TextInputCommitted>,
    gained_focus: Query<'_, '_, Entity, Added<Focused>>,
    lost_focus: RemovedComponents<'_, '_, Focused>,
    gained_hover: Query<'_, '_, Entity, Added<Hovered>>,
    lost_hover: RemovedComponents<'_, '_, Hovered>,
    scrolled: Query<'_, '_, Entity, Changed<ScrollOffset>>,
    fields: Query<'_, '_, (Option<&'static TextBuffer>, Option<&'static TextContent>)>,
)
Expand description

Read this tick’s focus, hover, edit, commit and scroll changes as DOM events, for deliver_state_events.