-
-
Notifications
You must be signed in to change notification settings - Fork 911
/
GamePadAxis.cs
49 lines (41 loc) · 1.19 KB
/
GamePadAxis.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
// 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>
/// Axis for gamepad returned by <see cref="GamePadState"/>.
/// </summary>
[Flags]
public enum GamePadAxis : ushort
{
/// <summary>
/// The X-Axis of the left thumb stick
/// </summary>
LeftThumbX = 1 << 1,
/// <summary>
/// The Y-Axis of the left thumb stick
/// </summary>
LeftThumbY = 1 << 2,
/// <summary>
/// The X-Axis of the right thumb stick
/// </summary>
RightThumbX = 1 << 3,
/// <summary>
/// The Y-Axis of the right thumb stick
/// </summary>
RightThumbY = 1 << 4,
/// <summary>
/// The left trigger
/// </summary>
LeftTrigger = 1 << 5,
/// <summary>
/// The right trigger
/// </summary>
RightTrigger = 1 << 6,
/// <summary>
/// No Axis
/// </summary>
None = 0,
}
}