Module input

Source
Expand description

Provides translation from a concrete windowing backend (winit) to the engine’s abstract input events.

This module acts as an adapter layer, decoupling the rest of the engine from the specific input event format of the winit crate.

Enums§

InputEvent
An engine-internal representation of a user input event.
MouseButton
An engine-internal representation of a mouse button.

Functions§

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