|
|
|
| Breakaway from the madness and go through the tunnel of love with me! |
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Xbox 360 controller
We have an xbox controller connected to the ds and it works fine for the left stick and most of the buttons. How do we get the x and y values for the right stick?
|
|
#2
|
|||
|
|||
|
Re: Xbox 360 controller
What platform are you using (C++, Java, or LV)?
One thing to ensure is that in Game Controllers (from the Control Panel) you can see your x and y axes moving with the stick. Then it's simply a code issue. |
|
#3
|
|||
|
|||
|
Re: Xbox 360 controller
We are using java
I'm pretty sure the right stick works as I have used it at home for games. I will try what you said and see. |
|
#4
|
||||
|
||||
|
Re: Xbox 360 controller
Code:
//definitions Joystick stick = new Joystick(1); //usage float axis = stick.getRawAxis(axisNumber); //see table below for axis numbers boolean button = stick.getRawButton(buttonNumber); 1 - LeftX 2 - LeftY 3 - Triggers (Each trigger = 0 to 1, axis value = right - left) 4 - RightX 5 - RightY 6 - DPad Left/Right Button mapping matches Windows Control Panel>Game Pads display Last edited by EHaskins : 16-02-2010 at 19:24. |
|
#5
|
||||
|
||||
|
Re: Xbox 360 controller
but remember to buffer the xbox controller, for this reason, im most likely gonna ditch the much-requested 360Drive on my team's robot
|
|
#6
|
|||||
|
|||||
|
Re: Xbox 360 controller
the Logitech ps2-like controller works very well. I would recommend it to anyone having problems with the 360 controller. We are driving with one, the same one that drove us in 2008 and its still running without issue at all.
|
|
#7
|
||||
|
||||
|
Re: Xbox 360 controller
Lol that'd be so cool to do, but we don't have enough time to figure that out.
I'm super jealous >.< |
|
#8
|
||||
|
||||
|
Re: Xbox 360 controller
That one is also less than half the price of a 360 controller. I've had good luck with that one as well.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Xbox 360 Controller Rumble | bubushkinator | C/C++ | 5 | 09-02-2010 15:05 |
| Xbox 360 controller LabView | CJBrick | General Forum | 12 | 17-12-2008 13:58 |
| xbox 360 controller installation | kuelin | Technical Discussion | 17 | 07-01-2008 19:43 |
| Chicklet with MS XBOX 360 controller | 354.FIRST | Control System | 2 | 19-04-2007 16:29 |
| chicklet USB/xbox 360 controller | spsteam1512 | Control System | 1 | 10-01-2007 23:14 |