Skip to main content

dispatch_long_press_to_script

Function dispatch_long_press_to_script 

Source
pub fn dispatch_long_press_to_script<H: ScriptHost + Resource<Mutability = Mutable>>(
    host: ResMut<'_, H>,
    events: MessageReader<'_, '_, LongPressEvent>,
    ids: Query<'_, '_, &LumenId>,
    out: MessageWriter<'_, ScriptCommandEvent>,
)
Expand description

Forward LongPressEvent as on_long_press(id).