forked from MonoGame/MonoGame
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlayerIndex.cs
More file actions
50 lines (49 loc) · 1.53 KB
/
PlayerIndex.cs
File metadata and controls
50 lines (49 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// MonoGame - Copyright (C) MonoGame Foundation, Inc
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
namespace Microsoft.Xna.Framework
{
/// <summary>
/// Defines the index of player for various MonoGame components.
/// </summary>
/// <remarks>
/// Use <see cref="Microsoft.Xna.Framework.Input.GamePad.MaximumGamePadCount" /> to determine the number of supported gamepads on the current
/// platform to ensure that a valid <see cref="PlayerIndex" /> is used when accessing gamepad input.
/// Not all platforms support all eight player indices.
/// </remarks>
public enum PlayerIndex
{
/// <summary>
/// The first player index.
/// </summary>
One = 0,
/// <summary>
/// The second player index.
/// </summary>
Two = 1,
/// <summary>
/// The third player index.
/// </summary>
Three = 2,
/// <summary>
/// The fourth player index.
/// </summary>
Four = 3,
/// <summary>
/// The fifth player index.
/// </summary>
Five = 4,
/// <summary>
/// The sixth player index.
/// </summary>
Six = 5,
/// <summary>
/// The seventh player index.
/// </summary>
Seven = 6,
/// <summary>
/// The eighth player index.
/// </summary>
Eight = 7
}
}