forked from bbeardsley/BuzzIO
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInputReport.cs
More file actions
24 lines (24 loc) · 821 Bytes
/
InputReport.cs
File metadata and controls
24 lines (24 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
namespace BuzzIO
{
/// <summary>
/// Defines a base class for input reports. To use input reports, use the SetData method and override the
/// ProcessData method.
/// </summary>
public abstract class InputReport : Report
{
/// <summary>
/// Call this to set the buffer given a raw input report. Calls an overridable method to
/// should automatically parse the bytes into meaningul structures.
/// </summary>
/// <param name="arrData">Raw input report.</param>
public void SetData(byte[] arrData)
{
SetBuffer(arrData);
ProcessData();
}
/// <summary>
/// Override this to process the input report into something useful
/// </summary>
public abstract void ProcessData();
}
}