GamepadSettings

GamepadSettings

  • default_button_settings : bevy_input::gamepad::ButtonSettings
  • default_axis_settings : bevy_input::gamepad::AxisSettings
  • default_button_axis_settings : bevy_input::gamepad::ButtonAxisSettings
  • button_settings : bevy_utils::hashbrown::HashMap<bevy_input::gamepad::GamepadButton, bevy_input::gamepad::ButtonSettings, bevy_utils::hashbrown::hash_map::DefaultHashBuilder>
  • axis_settings : bevy_utils::hashbrown::HashMap<bevy_input::gamepad::GamepadAxis, bevy_input::gamepad::AxisSettings, bevy_utils::hashbrown::hash_map::DefaultHashBuilder>
  • button_axis_settings : bevy_utils::hashbrown::HashMap<bevy_input::gamepad::GamepadButton, bevy_input::gamepad::ButtonAxisSettings, bevy_utils::hashbrown::hash_map::DefaultHashBuilder>

Description

Gamepad settings component.

Usage

It is used to create a bevy component that stores the settings of [GamepadButton] and [GamepadAxis] in [Gamepad]. If no user defined [ButtonSettings], [AxisSettings], or [ButtonAxisSettings] are defined, the default settings of each are used as a fallback accordingly.

Note

The [GamepadSettings] are used to determine when raw gamepad events should register. Events that don't meet the change thresholds defined in [GamepadSettings] will not register. To modify these settings, mutate the corresponding component.

Functions

FunctionSummary
clone(_self)No Documentation 🚧