GamePadDPad Structure

Identifies which directions on the directional pad of an Xbox 360 Controller are being pressed.

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

public struct GamePadDPad

Bb197007.bp(en-us,XNAGameStudio.40).gifBest Practice
Many games allow movement to be controlled with either the left thumbstick or the directional pad (D-pad). The left thumbstick can be accessed with ThumbSticks, and the directional pad is available through DPad.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7

Community Additions