GamePad.GetCapabilities Method
Retrieves the capabilities of an Xbox 360 Controller.
Namespace: Microsoft.Xna.Framework.Input
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public static GamePadCapabilities GetCapabilities (
PlayerIndex playerIndex
)
Parameters
- playerIndex
Index of the controller to query.
Return Value
The capabilities of the controller.
Exceptions
Exception type | Condition |
---|---|
InvalidOperationException | An unknown error has occurred. Verify that the correct playerIndex is being requested. |
See Also
Reference
GamePad Class
GamePad Members
Microsoft.Xna.Framework.Input Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista