Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (117)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Can I use the wireless adapter for the xbox 360 with Jinput?  (Read 3114 times)
0 Members and 1 Guest are viewing this topic.
Offline CJM3407

Senior Newbie





« Posted 2008-04-04 19:06:10 »

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

Senior Newbie





« Reply #1 - Posted 2008-04-04 19:36:28 »

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

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #2 - Posted 2008-04-04 20:11:25 »

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

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline CJM3407

Senior Newbie





« Reply #3 - Posted 2008-04-06 06:46:46 »

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();
Offline cylab

JGO Ninja


Medals: 49



« Reply #4 - Posted 2008-04-06 12:48:15 »

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

Mathias - I Know What [you] Did Last Summer!
Offline CJM3407

Senior Newbie





« Reply #5 - Posted 2008-04-06 16:23:45 »

I don't know is there one anyone knows that they could suggest to test
Offline CJM3407

Senior Newbie





« Reply #6 - Posted 2008-04-06 17:20:53 »

sorry I am using windows xp sp2
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #7 - Posted 2008-04-06 21:50:41 »

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

Offline Orangy Tang

JGO Kernel


Medals: 56
Projects: 11


Monkey for a head


« Reply #8 - Posted 2008-04-06 22:38:20 »

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:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
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.

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline CJM3407

Senior Newbie





« Reply #9 - Posted 2008-04-07 15:06:57 »

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.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #10 - Posted 2008-04-07 17:50:49 »

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 Smiley

Endolf

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

radar3301 (12 views)
2014-09-21 23:33:17

BurntPizza (31 views)
2014-09-21 02:42:18

BurntPizza (22 views)
2014-09-21 01:30:30

moogie (20 views)
2014-09-21 00:26:15

UprightPath (29 views)
2014-09-20 20:14:06

BurntPizza (33 views)
2014-09-19 03:14:18

Dwinin (48 views)
2014-09-12 09:08:26

Norakomi (74 views)
2014-09-10 13:57:51

TehJavaDev (103 views)
2014-09-10 06:39:09

Tekkerue (51 views)
2014-09-09 02:24:56
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!