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::KeyCodeexactly (same variants, same names). Physical, not logical:KeyWis 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. - Mouse
Button - A mouse button — mirrors
winit::event::MouseButtonexactly.