PlayerIndex Enumeration

Specifies the game controller associated with a player.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)


public enum PlayerIndex


Member name Description
One The first controller.
Two The second controller.
Three The third controller.
Four The fourth controller.

See Also


SignedInGamer.PlayerIndex Property
SignedInGamerCollection.Item Property (PlayerIndex)
GamePad.GetCapabilities Method
GamePad.GetState Method
GamePad.SetVibration Method
Guide.BeginShowKeyboardInput Method
Guide.BeginShowMessageBox Method
Guide.ShowComposeMessage Method
Guide.ShowFriendRequest Method
Guide.ShowFriends Method
Guide.ShowGameInvite Method
Guide.ShowGamerCard Method
Guide.ShowMarketplace Method
Guide.ShowMessages Method
Guide.ShowPlayerReview Method
Guide.ShowPlayers Method
Keyboard.GetState Method
Microsoft.Xna.Framework Namespace


Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone