Skip to content

Commit 14384d4

Browse files
committed
Added new optional constructor parameter buttonCount.
1 parent afee604 commit 14384d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ The following API is available if the Joystick library in included in a sketch f
5252
Constructor used to initialize and setup the Joystick. The following optional parameters are available:
5353

5454
- uint8\_t hidReportId - Default: 0x03 - Indicates what the joystick's HID report ID should be. This value must be unique if you are creating multiple instances of Joystick. Do not use 0x01 or 0x02 as they are used by the built-in Arduino Keyboard and Mouse libraries.
55+
- uint8\_t buttonCount - Default: 32 - Indicates how many buttons will be available on the joystick.
5556

5657
###Joystick.begin(bool initAutoSendState)
5758
Starts emulating a game controller connected to a computer. By default all methods update the game controller state immediately. If initAutoSendState is set to false, the Joystick.sendState method must be called to update the game controller state.
@@ -112,4 +113,4 @@ I have tested this library with the following boards:
112113
- Arduino Leonardo
113114
- Arduino Micro
114115

115-
(as of 2016-05-13)
116+
(as of 2016-05-13)

0 commit comments

Comments
 (0)