-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconsts.go
82 lines (69 loc) · 2.27 KB
/
consts.go
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
package main
type HANDLE uintptr
type HWND uintptr
type PointerInputType uint32
const (
PointerInputPointer PointerInputType = 1
PointerInputTouch = 2
PointerInputPen = 3
PointerInputMouse = 4
PointerInputTouchpad = 5
)
type PointerFlags uint32 // Could be something else
const (
PointerFlagNone PointerFlags = 0x00000000
PointerFlagNew = 0x00000001
PointerFlagInRange = 0x00000002
PointerFlagInContact = 0x00000004
PointerFlagFirstButton = 0x00000010
PointerFlagSecondButton = 0x00000020
PointerFlagThirdButton = 0x00000040
PointerFlagFourthButton = 0x00000080
PointerFlagFifthButton = 0x00000100
PointerFlagPrimary = 0x00002000
PointerFlagConfidence = 0x00004000
PointerFlagCanceled = 0x00008000
PointerFlagDown = 0x00010000
PointerFlagUpdate = 0x00020000
PointerFlagUp = 0x00040000
PointerFlagWheel = 0x00080000
PointerFlagHWheel = 0x00100000
PointerFlagCaptureChanged = 0x00200000
PointerFlagHasTransform = 0x00400000
)
type PointerButtonChangeType uint32
const (
PointerChangeNone PointerButtonChangeType = iota
PointerChangeFirstButtonDown
PointerChangeFirstButtonUp
PointerChangeSecondButtonDown
PointerChangeSecondButtonUp
PointerChangeThirdButtonDown
PointerChangeThirdButtonUp
PointerChangeFourthButtonDown
PointerChangeFourthButtonUp
PointerChangeFifthButtonDown
PointerChangeFifthButtonUp
)
type ModifierKeyState uint32
const (
PointerModifierShift ModifierKeyState = 0x0004
PointerModifierCtrl = 0x0008
)
type TouchFlags uint32
const (
TouchFlagNone TouchFlags = 0x00000000
)
type TouchMask uint32
const (
TouchMaskNone TouchMask = 0x00000000
TouchMaskContactArea = 0x00000001
TouchMaskOrientation = 0x00000002
TouchMaskPressure = 0x00000004
)
const (
MAX_TOUCH_COUNT = 10
TOUCH_FEEDBACK_DEFAULT = 0x1
TOUCH_FEEDBACK_INDIRECT = 0x2
TOUCH_FEEDBACK_NONE = 0x3
)