Skip to content

Commit 98f3569

Browse files
committed
Update to clarify the number of buttons available
1 parent 69a4d0d commit 98f3569

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ Sets the Y axis rotation value. Range 0° to 360°.
3737
Sets the Z axis rotation value. Range 0° to 360°.
3838

3939
###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.
4141

4242
###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.).
4444

4545
###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.).
4747

4848
###Joystick.setThrottle(byte value)
4949
Sets the throttle value. Range 0 to 255.
@@ -75,13 +75,13 @@ Sets the X axis value. Range -127 to 127 (0 is center).
7575
Sets the Y axis value. Range -127 to 127 (0 is center).
7676

7777
###Joystick[joystickIndex].setButton(byte button, byte value)
78-
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.
7979

8080
###Joystick[joystickIndex].pressButton(byte button)
81-
Press the indicated button. The button is the 0-based button number (i.e. button #1 is 0, button #2 is 1, etc.).
81+
Press the indicated button (0 - 15). The button is the 0-based button number (i.e. button #1 is 0, button #2 is 1, etc.).
8282

8383
###Joystick[joystickIndex].releaseButton(byte button)
84-
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.).
8585

8686
###Joystick[joystickIndex].sendState()
8787
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

Comments
 (0)