GamePadState.ThumbSticks Property

Returns a structure that indicates the position of the Xbox 360 Controller sticks (thumbsticks).

Namespace: Microsoft.Xna.Framework.Input
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public GamePadThumbSticks ThumbSticks { get; }

Property Value

Structure that indicates the position of the sticks.

Bb199380.bp(en-us,XNAGameStudio.31).gifBest Practice

You can check GameDefaults.MoveWithRightThumbStick to determine if the player prefers using the right or left thumbstick to control movement.

Many games allow movement to be controlled with either the left thumbstick or the directional pad (d-pad). The directional pad is available through GamePadState.DPad.

Xbox 360, Windows XP SP2, Windows Vista, Zune

Community Additions

ADD
Show: