GamepadReading GamepadReading GamepadReading GamepadReading GamepadReading Struct

Definition

Represents the current state of the gamepad.

public : struct GamepadReading
struct winrt::Windows::Gaming::Input::GamepadReading
public struct GamepadReading
Public Structure GamepadReading
var gamepadReading = {

   buttons: /* Your value */,

   leftThumbstickX: /* Your value */,

   leftThumbstickY: /* Your value */,

   leftTrigger: /* Your value */,

   rightThumbstickX: /* Your value */,

   rightThumbstickY: /* Your value */,

   rightTrigger: /* Your value */,

   timestamp: /* Your value */

}
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Fields

Buttons Buttons Buttons Buttons Buttons

The state of the gamepad's buttons. This will be a combination of values in the GamepadButtons enumeration.

LeftThumbstickX LeftThumbstickX LeftThumbstickX LeftThumbstickX LeftThumbstickX

The position of the left thumbstick on the X-axis. The value is between -1.0 and 1.0.

LeftThumbstickY LeftThumbstickY LeftThumbstickY LeftThumbstickY LeftThumbstickY

The position of the left thumbstick on the Y-axis. The value is between -1.0 and 1.0.

LeftTrigger LeftTrigger LeftTrigger LeftTrigger LeftTrigger

The position of the left trigger. The value is between 0.0 (not depressed) and 1.0 (fully depressed).

RightThumbstickX RightThumbstickX RightThumbstickX RightThumbstickX RightThumbstickX

The position of the right thumbstick on the X-axis. The value is between -1.0 and 1.0.

RightThumbstickY RightThumbstickY RightThumbstickY RightThumbstickY RightThumbstickY

The position of the right thumbstick on the Y-axis. The value is between -1.0 and 1.0.

RightTrigger RightTrigger RightTrigger RightTrigger RightTrigger

The position of the right trigger. The value is between 0.0 (not depressed) and 1.0 (fully depressed).

Timestamp Timestamp Timestamp Timestamp Timestamp

Time when the state was retrieved from the gamepad.