-
-
Notifications
You must be signed in to change notification settings - Fork 427
/
Copy pathIInputDevice.cs
35 lines (30 loc) · 930 Bytes
/
IInputDevice.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
// 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.
using System;
namespace Silk.NET.Input.Common
{
/// <summary>
/// Generic interface representing an input device.
/// </summary>
public interface IInputDevice
{
/// <summary>
/// The name of this device, as reported by the hardware.
/// </summary>
string Name { get; }
/// <summary>
/// The index of this device.
/// </summary>
int Index { get; }
/// <summary>
/// Whether or not this device is currently connected.
/// </summary>
bool IsConnected { get; }
/// <summary>
/// Called when the connection of this device changes.
/// </summary>
event Action<IInputDevice, bool> ConnectionChanged;
}
}