hand property

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

The hand property specifies the hand that the controller is held in or is most likely to be held in.

This property is read-only.

Syntax

JavaScript
hand = object.hand

 

Property values

Type: GamepadHand

The GamepadHand enum specifying which, if any, hand the gamepad is being held in.

Remarks

The GamepadHand enum has the following enumerations:

MemberDescription
"left"The Gamepad is held or is most likely to be held in the left hand.
"right"The Gamepad is held or is most likely to be held in the right hand.
""Unable to tell which hand is holding the gamepad either because the gamepad is unknown or not applicable. This could be because the gamepad is being held by two hands.

 

See also

Gamepad

 

 

Show: