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
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.

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: