File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,11 @@ void setup()
2323 bleGamepadConfig.setPid (0xabcd );
2424 // Some non-Windows operating systems and web based gamepad testers don't like min axis set below 0, so 0 is set by default
2525 // bleGamepadConfig.setAxesMin(0x8001); // -32767 --> int16_t - 16 bit signed integer - Can be in decimal or hexadecimal
26- bleGamepadConfig.setAxesMin (0x0000 ); // 0 --> int16_t - 16 bit signed integer - Can be in decimal or hexadecimal
26+ bleGamepadConfig.setAxesMin (0x0000 ); // 0 --> int16_t - 16 bit signed integer - Can be in decimal or hexadecimal
2727 bleGamepadConfig.setAxesMax (0x7FFF ); // 32767 --> int16_t - 16 bit signed integer - Can be in decimal or hexadecimal
2828 bleGamepad.begin (&bleGamepadConfig); // Simulation controls, special buttons and hats 2/3/4 are disabled by default
2929
30- // changing bleGamepadConfig after the begin function has no effect, unless you call the begin function again
30+ // Changing bleGamepadConfig after the begin function has no effect, unless you call the begin function again
3131}
3232
3333void loop ()
@@ -80,7 +80,7 @@ void loop()
8080 bleGamepad.sendReport ();
8181
8282 Serial.println (" Move all sliders simultaneously from min to max" );
83- for (int i = bleGamepadConfig.getAxesMin (); i < bleGamepadConfig.getAxesMax (); i += (bleGamepadConfig.getAxesMax () / 256 ) + 1 )
83+ for (int i = bleGamepadConfig.getAxesMin (); i < bleGamepadConfig.getAxesMax (); i += (bleGamepadConfig.getAxesMax () / 256 ) + 1 )
8484 {
8585 bleGamepad.setSliders (i, i);
8686 bleGamepad.sendReport ();
@@ -136,4 +136,4 @@ void loop()
136136 // bleGamepad.setSimulationControls(); //Reset all simulation controls to zero
137137 bleGamepad.sendReport ();
138138 }
139- }
139+ }
You can’t perform that action at this time.
0 commit comments