Skip to content

Commit d80e09e

Browse files
committed
Disable gamepad joysticks by default
If the user uploads this without any joysticks connected, the inputs float and bounce all over the place. With these disabled by default, the user can upload this example to a bare board without any unexpected effects. Easy enough to flip the boolean and enable them if required.
1 parent 339ff76 commit d80e09e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/GamepadPins/GamepadPins.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242
#include <XInput.h>
4343

4444
// Setup
45-
const boolean UseLeftJoystick = true; // set to false to disable left joystick
45+
const boolean UseLeftJoystick = false; // set to true to enable left joystick
4646
const boolean InvertLeftYAxis = false; // set to true to use inverted left joy Y
4747

48-
const boolean UseRightJoystick = true; // set to false to disable right joystick
48+
const boolean UseRightJoystick = false; // set to true to enable right joystick
4949
const boolean InvertRightYAxis = false; // set to true to use inverted right joy Y
5050

5151
const boolean UseTriggerButtons = true; // set to false if using analog triggers

0 commit comments

Comments
 (0)