-
Notifications
You must be signed in to change notification settings - Fork 18
/
keywords.txt
99 lines (79 loc) · 1.82 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
#################################################
# Syntax Coloring Map For Joystick Shield Library
# http://hardwarefun.com/projects/joystick-shield
#################################################
#######################################
# Datatypes (KEYWORD1)
#######################################
JoystickShield KEYWORD1
#######################################
# Methods and Functions (KEYWORD2)
#######################################
setJoystickPins KEYWORD2
setButtonPins KEYWORD2
setThreshold KEYWORD2
processEvents KEYWORD2
processCallbacks KEYWORD2
# Joystick Functions
isCenter KEYWORD2
isUp KEYWORD2
isRightUp KEYWORD2
isRight KEYWORD2
isRightDown KEYWORD2
isDown KEYWORD2
isLeftDown KEYWORD2
isLeft KEYWORD2
isLeftUp KEYWORD2
isnotCenter KEYWORD2
# Button Functions
isJoystickButton KEYWORD2
isUpButton KEYWORD2
isRightButton KEYWORD2
isDownButton KEYWORD2
isLeftButton KEYWORD2
isFButton KEYWORD2
isEButton KEYWORD2
# Joystick coordinates
xAmplitude KEYWORD2
yAmplitude KEYWORD2
# Joystick callbacks Functions
onJSCenter KEYWORD2
onJSUp KEYWORD2
onJSRightUp KEYWORD2
onJSRight KEYWORD2
onJSRightDown KEYWORD2
onJSDown KEYWORD2
onJSLeftDown KEYWORD2
onJSLeft KEYWORD2
onJSLeftUp KEYWORD2
onJSnotCenter KEYWORD2
# Button callbacks
onJoystickButton KEYWORD2
onUpButton KEYWORD2
onRightButton KEYWORD2
onDownButton KEYWORD2
onLeftButton KEYWORD2
onFButton KEYWORD2
onEButton KEYWORD2
#######################################
# Constants (LITERAL1)
#######################################
#Joystick states
CENTER LITERAL1
UP LITERAL1
RIGHT_UP LITERAL1
RIGHT LITERAL1
RIGHT_DOWN LITERAL1
DOWN LITERAL1
LEFT_DOWN LITERAL1
LEFT LITERAL1
LEFT_UP LITERAL1
#Button states
NO_BUTTON LITERAL1
JOYSTICK_BUTTON LITERAL1
UP_BUTTON LITERAL1
RIGHT_BUTTON LITERAL1
DOWN_BUTTON LITERAL1
LEFT_BUTTON LITERAL1
F_BUTTON LITERAL1
E_BUTTON LITERAL1