mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
Fix joystick issues [artf3707]
Make axes and POVs 0-based like they are on the DS Correct default joystick axis numbers to be 0-based Fix array dimensions for joystick axis values Increase the number of joystick ports to the maximum 6 that the DS supports Change-Id: I16d0e6e636188cbdd9cd7bfa0453a62466a55093
This commit is contained in:
@@ -149,7 +149,7 @@ float Joystick::GetThrottle()
|
||||
/**
|
||||
* Get the value of the axis.
|
||||
*
|
||||
* @param axis The axis to read [1-6].
|
||||
* @param axis The axis to read, starting at 0.
|
||||
* @return The value of the axis.
|
||||
*/
|
||||
float Joystick::GetRawAxis(uint32_t axis)
|
||||
|
||||
Reference in New Issue
Block a user