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
GamepadButton
andGamepadAxis
. - Gamepad
Axis Changed Event GamepadAxis
event triggered by an analog state change- Gamepad
Button Changed Event GamepadButton
event triggered by an analog state change- Gamepad
Button State Changed Event GamepadButton
event triggered by a digital state change- Gamepad
Connection Event - A Gamepad connection 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 GamepadAxis
changed event unfiltered byGamepadSettings
- RawGamepad
Button Changed Event GamepadButton
changed 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
GamepadAxis
andGamepadButton
- Gamepad
Rumble Request - An event that controls force-feedback rumbling of a
Gamepad
entity
. - RawGamepad
Event - A raw gamepad event.
Functions§
- gamepad_
connection_ system - Handles
GamepadConnectionEvent
s events. - gamepad_
event_ processing_ system - Consumes
RawGamepadEvent
events, filters them using theirGamepadSettings
and if successful, updates theGamepad
and sendsGamepadAxisChangedEvent
,GamepadButtonStateChangedEvent
,GamepadButtonChangedEvent
events.