Module leafwing_input_manager::user_input::keyboard
source · Expand description
Keyboard inputs
Structs§
- A virtual single-axis control constructed from two
KeyCodes. One key represents the negative direction (left for the X-axis, down for the Y-axis), while the other represents the positive direction (right for the X-axis, up for the Y-axis). - A virtual single-axis control constructed from four
KeyCodes. Each key represents a specific direction (up, down, left, right), functioning similarly to a directional pad (D-pad) on both X and Y axes, and offering intermediate diagonals by means of two-key combinations.
Enums§
- Keyboard modifiers like Alt, Control, Shift, and Super (OS symbol key).