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