Expand description
The gamepad input functionality.
Structs§
- Axis
Settings - Settings for a
GamepadAxis. - Button
Axis Settings - Settings for a
GamepadButton. - Button
Settings - Manages settings for gamepad buttons.
- Gamepad
- Stores a connected gamepad’s metadata such as the name and its
GamepadButtonandGamepadAxis. - Gamepad
Axis Changed Event GamepadAxisevent triggered by an analog state change.- Gamepad
Button Changed Event GamepadButtonevent triggered by an analog state change.- Gamepad
Button State Changed Event GamepadButtonevent triggered by a digital state change.- Gamepad
Connection Event - A
Gamepadconnection event. Created when a connection to a gamepad is established and when a gamepad is disconnected. - Gamepad
Rumble Intensity - The intensity at which a gamepad’s force-feedback motors may rumble.
- Gamepad
Settings - Gamepad settings component.
- RawGamepad
Axis Changed Event GamepadAxischanged event unfiltered byGamepadSettings.- RawGamepad
Button Changed Event GamepadButtonchanged event unfiltered byGamepadSettings.
Enums§
- Axis
Settings Error - Errors that occur when setting axis settings for gamepad input.
- Button
Settings Error - Errors that occur when setting button settings for gamepad input.
- Gamepad
Axis - Represents gamepad input types that are mapped in the range [-1.0, 1.0].
- Gamepad
Button - Represents gamepad input types that are mapped in the range [0.0, 1.0].
- Gamepad
Connection - The connection status of a gamepad.
- Gamepad
Event - A gamepad event.
- Gamepad
Input - Encapsulation over
GamepadAxisandGamepadButton. - Gamepad
Rumble Request - An event that controls force-feedback rumbling of a
Gamepadentity. - RawGamepad
Event - A raw gamepad event.
Functions§
- gamepad_
connection_ system - Handles
GamepadConnectionEvents events. - gamepad_
event_ processing_ system - Consumes
RawGamepadEventevents, filters them using theirGamepadSettingsand if successful, updates theGamepadand sendsGamepadAxisChangedEvent,GamepadButtonStateChangedEvent,GamepadButtonChangedEventevents.