-
-
Notifications
You must be signed in to change notification settings - Fork 911
/
GamePadButton.cs
93 lines (77 loc) · 2.07 KB
/
GamePadButton.cs
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
// Copyright (c) Stride contributors (https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
using System;
namespace Stride.Input
{
/// <summary>
/// Buttons for gamepad returned by <see cref="GamePadState"/>.
/// </summary>
[Flags]
public enum GamePadButton : ushort
{
/// <summary>
/// PadUp button. (DPad / Directional Pad)
/// </summary>
PadUp = 1 << 0,
/// <summary>
/// PadDown button. (DPad / Directional Pad)
/// </summary>
PadDown = 1 << 1,
/// <summary>
/// PadLeft button. (DPad / Directional Pad)
/// </summary>
PadLeft = 1 << 2,
/// <summary>
/// PadRight button. (DPad / Directional Pad)
/// </summary>
PadRight = 1 << 3,
/// <summary>
/// Any pad button (DPad / Directional Pad)
/// </summary>
Pad = 0xF,
/// <summary>
/// Start button.
/// </summary>
Start = 1 << 4,
/// <summary>
/// Back button.
/// </summary>
Back = 1 << 5,
/// <summary>
/// Left thumb button.
/// </summary>
LeftThumb = 1 << 6,
/// <summary>
/// Right thumb button.
/// </summary>
RightThumb = 1 << 7,
/// <summary>
/// Left shoulder button.
/// </summary>
LeftShoulder = 1 << 8,
/// <summary>
/// Right shoulder button.
/// </summary>
RightShoulder = 1 << 9,
/// <summary>
/// A button.
/// </summary>
A = 1 << 12,
/// <summary>
/// B button.
/// </summary>
B = 1 << 13,
/// <summary>
/// X button.
/// </summary>
X = 1 << 14,
/// <summary>
/// Y button.
/// </summary>
Y = 1 << 15,
/// <summary>
/// No buttons.
/// </summary>
None = 0,
}
}