78 | | * NOTE: if you are using a Logitech F310 gamepad, note that the gamepad uses different constants for accessing the joysticks than the xbox controller; you can access the joystick axes using the method xbox.getRawAxis(n) where n is the axes number. |
79 | | * 0=left X axis |
80 | | * 1=left Y axis |
81 | | * 2=left analog trigger |
82 | | * 3=right analog trigger |
83 | | * 4=right X axis |
84 | | * 5=right Y axis |
85 | | [[BR]] |
86 | | So, for example, to read the right joystick Y-axis position: |
87 | | {{{ |
88 | | double right_Y = xbox.getRawAxis(5); |
89 | | }}} |
| 78 | * NOTE: the Logitech F310 game controller works slightly differently from the standard xbox controller; to use the joysticks on the Logitech controller see [wiki://ControlSystems/GameControllers/LogitechF310 here] |