leafwing_input_manager::user_input

Module gamepad

source
Expand description

Gamepad inputs

Structs§

  • A wrapper around a specific GamepadAxisType (e.g., left stick X-axis, right stick Y-axis).
  • Provides button-like behavior for a specific direction on a GamepadAxisType.
  • A gamepad stick (e.g., left stick and right stick).
  • A virtual single-axis control constructed by combining two GamepadButtonTypes. One button 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 GamepadButtonTypes. Each button 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-button combinations.

Functions§