GamePadThumbSticks Constructor

Initializes a new instance of the GamePadThumbSticks class.

Syntax

'Declaration
Public Sub New ( _
         leftThumbstick As Vector2, _
         rightThumbstick As Vector2 _
)
public GamePadThumbSticks (
         Vector2 leftThumbstick,
         Vector2 rightThumbstick
)
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.

Remarks

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.

Requirements

Namespace: Microsoft.Xna.Framework.Input

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

See Also

Reference

GamePadThumbSticks Structure
GamePadThumbSticks Members
Microsoft.Xna.Framework.Input Namespace

Platforms

Windows Phone