-
Notifications
You must be signed in to change notification settings - Fork 0
/
State.cs
41 lines (33 loc) · 925 Bytes
/
State.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
/*
* Copyright (c) 2022 Fred Emmott <[email protected]>
*
* SPDX-License-Identifier: MIT
*/
using System.Runtime.InteropServices;
namespace OTDIPC
{
[StructLayout(LayoutKind.Sequential, Pack = 0)]
struct State
{
public State()
{
}
public Header Header = new()
{
MessageType = MessageType.State,
Size = (UInt32)Marshal.SizeOf(typeof(State)),
};
public bool PositionValid = false;
public float X = 0;
public float Y = 0;
public bool PressureValid = false;
public UInt32 Pressure = 0;
public bool PenButtonsValid = false;
public UInt32 PenButtons = 0;
public bool AuxButtonsValid = false;
public UInt32 AuxButtons = 0;
public bool ProximityValid = false;
public UInt32 HoverDistance = 0;
public bool NearPromixity = false;
}
}