Skip to main content

GameInputGamepadButtons

Enumerates gamepad buttons, including the directional pad (D-pad) and axis to button translations.

Syntax

Constants

Gamepad Modules

Modules represent groupings of gamepad elements commonly found together.

Gamepad Layouts

Commonly found gamepad layouts.

Remarks

This enumeration is used in the GameInputGamePadState structure. You can combine values to read multiple buttons simultaneously. GameInputGamepadLeftTriggerButton, GameInputGamepadRightTriggerButton, GameInputGamepadLeftThumbstickUp, GameInputGamepadLeftThumbstickDown, GameInputGamepadLeftThumbstickLeft, GameInputGamepadLeftThumbstickRight, GameInputGamepadRightThumbstickUp, GameInputGamepadRightThumbstickDown, GameInputGamepadRightThumbstickLeft, and GameInputGamepadRightThumbstickRight are digital representations of the corresponding analog axes found on most gamepads. For example, if the left thumbstick is pushed fully upward, both the GameInputGamepadLeftThumbstickUp button and the GameInputGamepadLeftThumbstickY axis will display value 1.0. For more information, see the Getting data from readings section of GameInput readings. This enumeration can additionally be used with the IGameInputMapper::GetGamepadButtonMappingInfo method to retrieve mapping information for a specific gamepad button.

Requirements

Header: GameInput.h Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

See also

Overview of GameInput
GameInput

Version History

Appendix: Previous versions

v0

Last modified on August 20, 2026