Skip to main content

translate_winit_input

Function translate_winit_input 

Source
pub fn translate_winit_input(event: &WindowEvent) -> Option<InputEvent>
Expand description

Translates a winit::event::WindowEvent into Khora’s InputEvent format.

Returns Some(InputEvent) for recognized input actions, None for window lifecycle events (resize, focus, etc.) the engine doesn’t care about.