Export (0) Print
Expand All

GamePadDPad Constructor

Initializes a new instance of the GamePadDPad class.

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

public GamePadDPad (
         ButtonState upValue,
         ButtonState downValue,
         ButtonState leftValue,
         ButtonState rightValue
)

Parameters

upValue
Directional pad up button state.
downValue
Directional pad down button state.
leftValue
Directional pad left button state.
rightValue
Directional pad right button state.

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