Skip to main content

Module keycode

Module keycode 

Source
Expand description

Mirrors winit::keyboard::KeyCode (physical key codes) and winit::event::MouseButton exactly, so Input’s methods never need a raw winit type. Convert into winit via .into().

Enums§

KeyCode
Code representing the location of a physical key on the keyboard — mirrors winit::keyboard::KeyCode exactly (same variants, same names). Physical, not logical: KeyW is the same key regardless of the active keyboard layout, which is what makes this suitable for game controls (movement bindings, etc.) rather than text entry.
MouseButton
A mouse button — mirrors winit::event::MouseButton exactly.