Tuix Guide logo Tuix Guide


Sending Events

Events are sent using the state like so:

state.insert_event(Event::new(CalculatorEvent::Digit('0')).target(entity));

This is from the calculator.rs example and shows how to send a custom event.