Can I use the wireless adapter for the xbox 360 with Jinput?

Can I use the wireless adapter for the xbox 360 with Jinput?

Nvm I got it working, now my question is I use the .getRumblers() method but nothing is returned.

What OS are you using?, which jinput dist did you download?. Do you have any non jinput applications to test that rumbling is working correctly on the device?

HTH

Endolf

Yeah on my xbox 360 my rumble works. It isn’t that it isn’t rumbling, it is actually that there is an array out of bounds at rumblers[0]. Meaning no rumbers were found when I called Rumblers rumblers[ ] = controller.getRumblers();

I think he was refering if you have other PC apps where the rumbling works. It might be a driver issue.

I don’t know is there one anyone knows that they could suggest to test

sorry I am using windows xp sp2

Yeah, I was referring to other rumbler hardware on the PC, I don’t care what works on the xbox, thats not running JInput. As cylab says, I want to rule out driver issues, as the rumbler stuff seems to work elsewhere. Did you check the size of the array before using rumblers[0]?, I’m guessing not. That would solve the AIOB exception.

Endolf

It looks like JInput doesn’t pick up any rumblers with the 360 pad:


C:\Temp\>java -Djava.library.path=. -cp jinput.jar;jinput-test.jar net.java.games.input.test.RumbleTest
Loading: net.java.games.input.DirectAndRawInputEnvironmentPlugin
Scanning Standard 101/102-Key or Microsoft Natural PS/2 Keyboard
Found 0 rumblers
Scanning Microsoft USB Comfort Optical Mouse 3000 (IntelliPoint)
Found 0 rumblers
Scanning Microsoft Optical Mouse with Tilt Wheel
Found 0 rumblers
Scanning Controller (Xbox 360 Wireless Receiver for Windows)
Found 0 rumblers

However I’m not sure if that’s a JInput restriction or a 360 pad driver restriction - there doesn’t seem to be an option to test the rumble in the control panel, but some googling suggests some windows games support it.

I checked the size of the array and it is 0. And I was testing with xna(which is microsofts) and they have access to the rumblers. So it may be a microsoft thing involving them not wantinganyone else access to the rumbler info.

Ok, a quick google suggests that microsoft changed the API to XInput instead of directx for the xbox controller stuff, although some basic information is available via directx. I don’t have an xbox 360 or a controller for one, so I can’t do any testing on any API updates that JInput requires for these API changes.

Hardware donations or volunteers required :slight_smile:

Endolf