Export (0) Print
Expand All
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.31).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 XP SP2, Windows Vista, Zune
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.