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)

public static GamePadCapabilities GetCapabilities (
         PlayerIndex playerIndex


Index of the controller to query.

Return Value

The capabilities of the controller.

Exception typeCondition
InvalidOperationException An unknown error has occurred. Verify that the correct playerIndex is being requested.

Xbox 360, Windows XP SP2, Windows Vista, Zune