Trait 2dgl::game::gameloop::EventHandler
[-]
[+]
[src]
pub trait EventHandler<E> { fn event(&mut self, event: E); }
Something that have the ability to handle events in a game loop
E: Type of the structure that contains an event and its own data that should be important for understanding the event
Required Methods
fn event(&mut self, event: E)
Triggers an single event