-
-
Notifications
You must be signed in to change notification settings - Fork 113
/
Copy pathKeyMatrixEvent.cs
36 lines (31 loc) · 1.03 KB
/
KeyMatrixEvent.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
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Device.Gpio;
namespace Iot.Device.KeyMatrix
{
/// <summary>
/// Keyboard event
/// </summary>
public class KeyMatrixEvent
{
/// <summary>
/// Event type of current button. PinEventTypes.Rising is pressed,PinEventTypes.Falling is released
/// </summary>
public PinEventTypes EventType { get; internal set; }
/// <summary>
/// Current button's output index
/// </summary>
public int Output { get; internal set; }
/// <summary>
/// Current button's input index
/// </summary>
public int Input { get; internal set; }
internal KeyMatrixEvent(PinEventTypes eventType, int output, int input)
{
EventType = eventType;
Output = output;
Input = input;
}
}
}