-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
47 lines (42 loc) · 1016 Bytes
/
types.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
package main
import "github.com/AllenDang/w32"
type PointerTouchInfo struct {
PointerInfo PointerInfo
TouchFlags TouchFlags
TouchMask TouchMask
Contact w32.RECT
ContactRaw w32.RECT
Orientation uint32
Pressure uint32
}
type PointerInfo struct {
PointerType PointerInputType
PointerId uint32
FrameId uint32
PointerFlags PointerFlags
SourceDevice HANDLE
WindowTarget HWND
PixelLocation w32.POINT
HimetricLocation w32.POINT
PixelLocationRaw w32.POINT
HimetricLocationRaw w32.POINT
Time uint32
HistoryCount uint32
InputData uint32
KeyStates uint32
PerformanceCount uint64
ButtonChangeType PointerButtonChangeType
}
type MouseHookStruct struct {
pt w32.POINT
hwnd w32.HWND
wHitTestCode uint
dwExtraInfo uintptr
}
type KeyboardHookStruct struct {
vkCode uint32
scanCode uint32
flags uint32
time uint32
dwExtraInfo uintptr
}