GamePadDPad Constructor

Initializes a new instance of the GamePadDPad class.

Syntax

'Declaration
Public Sub New ( _
         upValue As ButtonState, _
         downValue As ButtonState, _
         leftValue As ButtonState, _
         rightValue As ButtonState _
)
public GamePadDPad (
         ButtonState upValue,
         ButtonState downValue,
         ButtonState leftValue,
         ButtonState rightValue
)
public:
GamePadDPad(
         ButtonState upValue,
         ButtonState downValue,
         ButtonState leftValue,
         ButtonState rightValue
)

Parameters

  • upValue
    Type: ButtonState
    Directional pad up button state.
  • downValue
    Type: ButtonState
    Directional pad down button state.
  • leftValue
    Type: ButtonState
    Directional pad left button state.
  • rightValue
    Type: ButtonState
    Directional pad right button state.

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

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

Platforms

Windows Phone