This topic has not yet been rated - Rate this topic

GamePadState.DPad Property

Returns a structure that identifies what directions of the directional pad on the Xbox 360 Controller are pressed.

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

public GamePadDPad DPad { get; }

Property Value

Structure that identifies what directional pad directions are pressed.
Bb196396.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 may be accessed with GamePadState.ThumbSticks.
Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ