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)
Syntax
public GamePadThumbSticks ThumbSticks { get; }
Property Value
Structure that indicates the position of the sticks.
Remarks
Best 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. |
See Also
Reference
GamePadState Structure
GamePadState Members
Microsoft.Xna.Framework.Input Namespace
Platforms
Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone