Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Joystick GetRawButton not working (http://www.chiefdelphi.com/forums/showthread.php?t=132426)

nick818 08-01-2015 18:49

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.

RufflesRidge 08-01-2015 18:54

Re: Joystick GetRawButton not working
 
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

Re: Joystick GetRawButton not working
 
Quote:

Originally Posted by RufflesRidge (Post 1424545)
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

Re: Joystick GetRawButton not working
 
Is anyone else having this issue?

kbocheltree 26-01-2015 21:26

Re: Joystick GetRawButton not working
 
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

Re: Joystick GetRawButton not working
 
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

Re: Joystick GetRawButton not working
 
Thanks for updating the thread with results!

sau 31-01-2015 21:29

Re: Joystick GetRawButton not working
 
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?


All times are GMT -5. The time now is 12:00.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi