Log in

View Full Version : Joystick GetRawButton not working


nick818
08-01-2015, 18:49
We're using a Saitek X52 joystick. GetRawAxis works fine, but GetRawButton and GetTrigger do not.

We've tried several different buttons on this joystick. Some were always true, but others were always false.

This is only a problem with this joystick. When we tried with a Logitech ATK3, it worked.

RufflesRidge
08-01-2015, 18:54
What do the button indicators do on the DS USB tab? What do they do in the Windows Joystick/Gamepad properties?

nick818
08-01-2015, 19:31
What do the button indicators do on the DS USB tab? What do they do in the Windows Joystick/Gamepad properties?

They light up when the button is pressed.

Domo Arigato
10-01-2015, 14:37
Is anyone else having this issue?

kbocheltree
26-01-2015, 21:26
We are using Logitech ATK3 Joysticks and are having problems seeing the GetRawButtons in the code. We pulled code we used last year for handling the buttons and it is not working now. GetX, GetY and GetZ all work, but am not seeing the GetRawButtons.

Am writing debug code tonight to see what is happening.

kbocheltree
28-01-2015, 19:33
Added debug statements and problem was with other section of code. Added code to show button presses on SmartDashBoard. So GetRawButton is working fine for Logitech ATK3 controller.

bob.wolff68
29-01-2015, 17:57
Thanks for updating the thread with results!

sau
31-01-2015, 21:29
YES!!!! Our team is also having problems with programming our Saitek X52. We have tried for the last two weeks to get our joystick to work. getRawAxis() works fine, but getRawButton() does not. We have not tried getRawTrigger(). We have also tried DriverStation.getInstance(), and we can pull the axis value directly from the driverstation, but are not able to with the buttons.

Our driver station does seem to recognize the buttons being pressed, as they light up when pressed, but they always return either a true or a false boolean.

We have tried the (more or less) same code with our Xbox controllers, and the buttons do work. Maybe it is just impossible to use the X52's?