Joystick GetRawButton not working

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.

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.

Is anyone else having this issue?

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.

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.

Thanks for updating the thread with results!

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?