Skip to main content

dispatch_menu_clicks_to_script

Function dispatch_menu_clicks_to_script 

Source
pub fn dispatch_menu_clicks_to_script<H: ScriptHost + Resource<Mutability = Mutable>>(
    host: ResMut<'_, H>,
    events: MessageReader<'_, '_, MenuClicked>,
    out: MessageWriter<'_, ScriptCommandEvent>,
)
Expand description

Forward lumen_core::input::MenuClicked to the script as on_menu(id), with the per-id on("menu", id, fn) router applying first.