MCPcopy Create free account
hub / github.com/17cupsofcoffee/nova / event

Method event

src/app.rs:17–17  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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}

Callers 1

handle_eventsMethod · 0.45

Implementers 1

bunnymark.rsexamples/bunnymark.rs

Calls

no outgoing calls

Tested by

no test coverage detected