leafwing_input_manager::user_input

Module 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 dual-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.
  • A virtual triple-axis control constructed from six KeyCodes. Each key represents a specific direction (up, down, left, right, forward, backward), functioning similarly to a three-dimensional directional pad (D-pad) on all X, Y, and Z axes, and offering intermediate diagonals by means of two/three-key combinations.

Enums§

  • Keyboard modifiers like Alt, Control, Shift, and Super (OS symbol key).