-
Notifications
You must be signed in to change notification settings - Fork 2
/
event.go
93 lines (69 loc) · 2.09 KB
/
event.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
83
84
85
86
87
88
89
90
91
92
93
package gods4
type Event string
const (
// Cross
EventCrossPress Event = "cross.press"
EventCrossRelease Event = "cross.release"
// Circle
EventCirclePress Event = "circle.press"
EventCircleRelease Event = "circle.release"
// Square
EventSquarePress Event = "square.press"
EventSquareRelease Event = "square.release"
// Triangle
EventTrianglePress Event = "triangle.press"
EventTriangleRelease Event = "triangle.release"
// L1
EventL1Press Event = "l1.press"
EventL1Release Event = "l1.release"
// L2
EventL2Press Event = "l2.press"
EventL2Release Event = "l2.release"
// L3
EventL3Press Event = "l3.press"
EventL3Release Event = "l3.release"
// R1
EventR1Press Event = "r1.press"
EventR1Release Event = "r1.release"
// R2
EventR2Press Event = "r2.press"
EventR2Release Event = "r2.release"
// R3
EventR3Press Event = "r3.press"
EventR3Release Event = "r3.release"
// D-pad up
EventDPadUpPress Event = "dpad_up.press"
EventDPadUpRelease Event = "dpad_up.release"
// D-pad down
EventDPadDownPress Event = "dpad_down.press"
EventDPadDownRelease Event = "dpad_down.release"
// D-pad left
EventDPadLeftPress Event = "dpad_left.press"
EventDPadLeftRelease Event = "dpad_left.release"
// D-pad right
EventDPadRightPress Event = "dpad_right.press"
EventDPadRightRelease Event = "dpad_right.release"
// Share
EventSharePress Event = "share.press"
EventShareRelease Event = "share.release"
// Options
EventOptionsPress Event = "options.press"
EventOptionsRelease Event = "options.release"
// Touchpad
EventTouchpadSwipe Event = "touchpad.swipe"
EventTouchpadPress Event = "touchpad.press"
EventTouchpadRelease Event = "touchpad.release"
// PS
EventPSPress Event = "ps.press"
EventPSRelease Event = "ps.release"
// Left stick
EventLeftStickMove Event = "left_stick.move"
// Right stick
EventRightStickMove Event = "right_stick.move"
// Accelerometer
EventAccelerometerUpdate Event = "accelerometer.update"
// Gyroscope
EventGyroscopeUpdate Event = "gyroscope.update"
// Battery
EventBatteryUpdate Event = "battery.update"
)