GameInputGamepadState
Describes the state of a gamepad input device.Syntax
Members
buttonsType: GameInputGamepadButtons The gamepad buttons that are pressed. leftTrigger
Type: float Position of left trigger, normalized as a value in the range [0.0, 1.0]. rightTrigger
Type: float Position of right trigger, normalized as a value in the range [0.0, 1.0]. leftThumbstickX
Type: float Horizontal position of the left thumbstick, normalized as a value in the range [-1.0, 1.0]. leftThumbstickY
Type: float Vertical position of the left thumbstick, normalized as a value in the range [-1.0, 1.0]. rightThumbstickX
Type: float Horizontal position of the right thumbstick, normalized as a value in the range [-1.0, 1.0]. rightThumbstickY
Type: float Vertical position of the right thumbstick, normalized as a value in the range [-1.0, 1.0].
Remarks
Used by the IGameInputReading:GetGamePadState method. For more information, see the Getting data from readings section of GameInput readings. For a code example, see A simple gamepad input loop.Requirements
Header: GameInput.h Supported platforms: Windows, XBOX One family consoles and XBOX Series consolesSee also
Overview of GameInputGameInput
