You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,13 +37,13 @@ Sets the Y axis rotation value. Range 0° to 360°.
37
37
Sets the Z axis rotation value. Range 0° to 360°.
38
38
39
39
###Joystick.setButton(byte button, byte value)
40
-
Sets the state of the specified button. The button is the 0-based button number (i.e. button #1 is 0, button #2 is 1, etc.). The value is 1 if the button is pressed and 0 if the button is released.
40
+
Sets the state (0 or 1) of the specified button (0 - 31). The button is the 0-based button number (i.e. button #1 is 0, button #2 is 1, etc.). The value is 1 if the button is pressed and 0 if the button is released.
41
41
42
42
###Joystick.pressButton(byte button)
43
-
Press the indicated button. The button is the 0-based button number (i.e. button #1 is 0, button #2 is 1, etc.).
43
+
Press the indicated button (0 - 31). The button is the 0-based button number (i.e. button #1 is 0, button #2 is 1, etc.).
44
44
45
45
###Joystick.releaseButton(byte button)
46
-
Release the indicated button. The button is the 0-based button number (i.e. button #1 is 0, button #2 is 1, etc.).
46
+
Release the indicated button (0 - 31). The button is the 0-based button number (i.e. button #1 is 0, button #2 is 1, etc.).
47
47
48
48
###Joystick.setThrottle(byte value)
49
49
Sets the throttle value. Range 0 to 255.
@@ -75,13 +75,13 @@ Sets the X axis value. Range -127 to 127 (0 is center).
75
75
Sets the Y axis value. Range -127 to 127 (0 is center).
Sets the state of the specified button. The button is the 0-based button number (i.e. button #1 is 0, button #2 is 1, etc.). The value is 1 if the button is pressed and 0 if the button is released.
78
+
Sets the state (0 or 1) of the specified button (0 - 15). The button is the 0-based button number (i.e. button #1 is 0, button #2 is 1, etc.). The value is 1 if the button is pressed and 0 if the button is released.
Release the indicated button. The button is the 0-based button number (i.e. button #1 is 0, button #2 is 1, etc.).
84
+
Release the indicated button (0 - 15). The button is the 0-based button number (i.e. button #1 is 0, button #2 is 1, etc.).
85
85
86
86
###Joystick[joystickIndex].sendState()
87
87
Sends the updated joystick state to the host computer. Only needs to be called if AutoSendState is false (see Joystick[joystickIndex].begin for more details).
0 commit comments