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
Left stick value. Each axis is clamped between -1.0 and 1.0.
rightThumbstick
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 to instead simulate gamepad input for passing within the game's own input subsystem.

Xbox 360, Windows XP SP2, Windows Vista, Zune

Community Additions

ADD
Show:
© 2014 Microsoft