Skip to main content

Module input

Module input 

Source
Expand description

Adapter layer: translates winit window events into Khora’s abstract input events.

The abstract types (InputEvent, KeyCode, MouseButton) live in khora_core::platform::input. This module only provides the winit-specific translation function plus the 1-to-1 winit→Khora KeyCode table.

Functions§

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