GamePadState.DPad Property
XNA Game Studio 4.0
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)
Best 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. |
Best Practice