PlayerIndex Enumeration

Specifies the game controller associated with a player.

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

Syntax

public enum PlayerIndex

Members

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

See Also

Reference

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

Platforms

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