pub trait FrendererEvents<T> {
// Required method
fn handle_event(
&mut self,
clock: &mut Clock,
window: &Arc<Window>,
evt: &Event<T>,
target: &EventLoopWindowTarget<T>,
input: &mut Input,
) -> EventPhase;
}Expand description
This extension trait is used under the winit feature to simplify event-loop handling.
Required Methods§
Sourcefn handle_event(
&mut self,
clock: &mut Clock,
window: &Arc<Window>,
evt: &Event<T>,
target: &EventLoopWindowTarget<T>,
input: &mut Input,
) -> EventPhase
fn handle_event( &mut self, clock: &mut Clock, window: &Arc<Window>, evt: &Event<T>, target: &EventLoopWindowTarget<T>, input: &mut Input, ) -> EventPhase
Call handle_event on your crate::frenderer::Renderer
with a given crate::clock::Clock to let Frenderer
figure out “the right thing to do” for the current winit
event. See crate::clock::Clock for details on the timestep computation.