Handle a raw event for the game. This is useful for one-off events, like key down events. For continuous events, like moving a character when you hold a key, use the update method. note: this will be called after the `app.input` has been updated with the event.
(&mut self, _app: &mut App, _event: Event)
| 15 | /// |
| 16 | /// note: this will be called after the `app.input` has been updated with the event. |
| 17 | fn event(&mut self, _app: &mut App, _event: Event) {} |
| 18 | fn update(&mut self, _app: &mut App) {} |
| 19 | fn draw(&mut self, _app: &mut App) {} |
| 20 | } |
no outgoing calls
no test coverage detected