File tree Expand file tree Collapse file tree
doc/hardware/subsystems/Switches Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -879,15 +879,21 @@ Place a call to `inputs::addJoystick()` with the following parameters
8798795 . Input number for "left".
8808806 . Input number for "right".
8818817 . Optionally, center position in the horizontal axis, in the range [ 0,255] .
882+ Defaults to 127.
8828838 . Optionally, center position in the vertical axis, in the range [ 0,255] .
884+ Defaults to 127.
8838859 . Optionally, dead zone around the center position in the horizontal axis,
884886 in the range [ 0,127] . Values close to 0 and 127 will not work properly.
887+ Defaults to 63.
88588810 . Optionally, dead zone around the center position in the vertical axis,
886889 in the range [ 0,127] . Values close to 0 and 127 will not work properly.
887- 11 . Reverse polarity of the horizontal axis.
890+ Defaults to 63.
891+ 11 . Optionally, reverse polarity of the horizontal axis.
888892 Set to ` true ` to swap the up and down positions.
889- 12 . Reverse polarity of the vertical axis.
893+ Defaults to ` false ` .
894+ 12 . Optionally, reverse polarity of the vertical axis.
890895 Set to ` true ` to swap the left and right positions.
896+ Defaults to ` false ` .
891897
892898The default values for the optional parameters should work in most cases.
893899Change them if the joystick drifts.
You can’t perform that action at this time.
0 commit comments