Export (0) Print
Expand All

GamePadThumbSticks Constructor

Initializes a new instance of the GamePadThumbSticks class.

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

public GamePadThumbSticks (
         Vector2 leftThumbstick,
         Vector2 rightThumbstick
)

Parameters

leftThumbstick
Type: Vector2
Left stick value. Each axis is clamped between −1.0 and 1.0.
rightThumbstick
Type: Vector2
Right stick value. Each axis is clamped between −1.0 and 1.0.

Games normally use GetState to get the true gamepad state. This constructor is used instead to simulate gamepad input for passing within the game's own input subsystem.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone

Community Additions

ADD
Show:
© 2014 Microsoft