GamepadReading GamepadReading GamepadReading GamepadReading Struct

Definition

Represents the current state of the gamepad.

public : struct GamepadReadingpublic struct GamepadReadingPublic Structure GamepadReading// You can use this struct in JavaScript.
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

The state of the gamepad's buttons.

public : field GamepadButtons Buttonspublic field GamepadButtons ButtonsPublic Field Buttons// You can use this field in JavaScript.

LeftThumbstickX LeftThumbstickX LeftThumbstickX LeftThumbstickX

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

public : field double LeftThumbstickXpublic field double LeftThumbstickXPublic Field LeftThumbstickX// You can use this field in JavaScript.

LeftThumbstickY LeftThumbstickY LeftThumbstickY LeftThumbstickY

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

public : field double LeftThumbstickYpublic field double LeftThumbstickYPublic Field LeftThumbstickY// You can use this field in JavaScript.

LeftTrigger LeftTrigger LeftTrigger LeftTrigger

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

public : field double LeftTriggerpublic field double LeftTriggerPublic Field LeftTrigger// You can use this field in JavaScript.

RightThumbstickX RightThumbstickX RightThumbstickX RightThumbstickX

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

public : field double RightThumbstickXpublic field double RightThumbstickXPublic Field RightThumbstickX// You can use this field in JavaScript.

RightThumbstickY RightThumbstickY RightThumbstickY RightThumbstickY

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

public : field double RightThumbstickYpublic field double RightThumbstickYPublic Field RightThumbstickY// You can use this field in JavaScript.

RightTrigger RightTrigger RightTrigger RightTrigger

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

public : field double RightTriggerpublic field double RightTriggerPublic Field RightTrigger// You can use this field in JavaScript.

Timestamp Timestamp Timestamp Timestamp

Time when the state was retrieved from the gamepad.

public : field ulong Timestamppublic field ulong TimestampPublic Field Timestamp// You can use this field in JavaScript.