-
-
Notifications
You must be signed in to change notification settings - Fork 426
/
Copy pathHat.cs
34 lines (31 loc) · 906 Bytes
/
Hat.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
// This file is part of Silk.NET.
//
// You may modify and distribute Silk.NET under the terms
// of the MIT license. See the LICENSE file for details.
namespace Silk.NET.Input.Common
{
/// <summary>
/// Represents a joystick hat.
/// </summary>
public struct Hat
{
/// <summary>
/// The index of this hat.
/// </summary>
public int Index { get; }
/// <summary>
/// The position of this hat.
/// </summary>
public Position2D Position { get; }
/// <summary>
/// Creates a new instance of the Hat struct.
/// </summary>
/// <param name="index">The index of the hat.</param>
/// <param name="position">The position of the hat.</param>
public Hat(int index, Position2D position)
{
Index = index;
Position = position;
}
}
}