-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathkeywords.txt
119 lines (98 loc) · 2.05 KB
/
keywords.txt
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#######################################
# Syntax Coloring Map For Arduino XInput Library
#######################################
#######################################
# Datatypes (KEYWORD1)
#######################################
# Library
XInput KEYWORD1
# Classes
XInputController KEYWORD1
# Enums
XInputControl KEYWORD1
XInputReceiveType KEYWORD1
XInputLEDPattern KEYWORD1
#######################################
# Methods and Functions (KEYWORD2)
#######################################
# Setup
begin KEYWORD2
reset KEYWORD2
# Set Control Data
press KEYWORD2
release KEYWORD2
setButton KEYWORD2
setDpad KEYWORD2
setTrigger KEYWORD2
setJoystick KEYWORD2
setJoystickX KEYWORD2
setJoystickY KEYWORD2
releaseAll KEYWORD2
setAutoSend KEYWORD2
# Read Control Data
getButton KEYWORD2
getDpad KEYWORD2
getTrigger KEYWORD2
getJoystickX KEYWORD2
getJoystickY KEYWORD2
# Receive data
getPlayer KEYWORD2
getRumble KEYWORD2
getRumbleLeft KEYWORD2
getRumbleRight KEYWORD2
getLEDPattern KEYWORD2
setReceiveCallback KEYWORD2
# USB I/O
connected KEYWORD2
send KEYWORD2
receive KEYWORD2
# Input Ranges
setTriggerRange KEYWORD2
setJoystickRange KEYWORD2
setRange KEYWORD2
# Other
printDebug KEYWORD2
#######################################
# Instances (KEYWORD2)
#######################################
#######################################
# Constants (LITERAL1)
#######################################
# XInput Controls
BUTTON_A LITERAL1
BUTTON_B LITERAL1
BUTTON_X LITERAL1
BUTTON_Y LITERAL1
BUTTON_LB LITERAL1
BUTTON_RB LITERAL1
BUTTON_L3 LITERAL1
BUTTON_R3 LITERAL1
BUTTON_START LITERAL1
BUTTON_BACK LITERAL1
BUTTON_LOGO LITERAL1
DPAD_UP LITERAL1
DPAD_DOWN LITERAL1
DPAD_LEFT LITERAL1
DPAD_RIGHT LITERAL1
TRIGGER_LEFT LITERAL1
TRIGGER_RIGHT LITERAL1
JOY_LEFT LITERAL1
JOY_RIGHT LITERAL1
# USB Receive Packet Types
Rumble LITERAL1
LEDs LITERAL1
# LED Patterns
Off LITERAL1
Blinking LITERAL1
Flash1 LITERAL1
Flash2 LITERAL1
Flash3 LITERAL1
Flash4 LITERAL1
On1 LITERAL1
On2 LITERAL1
On3 LITERAL1
On4 LITERAL1
Rotating LITERAL1
BlinkOnce LITERAL1
BlinkSlow LITERAL1
Alternating LITERAL1