Multiple Gamepads

Hi,

I am trying to use two gamepads with JInput (basically player 1 and player 2). I have both pads hooked upto a Belkin USB hub. Everything seems to work, but the gamepads switch order every so often (never when I am running the program). One gamepad will be player 1 on one app start, and then it will be player 2 on another start.

I tried looking at the Controller.getPortNumber, but its always 0. Is there any otherway to consistantly identify one controller as player 1? I checked the controller variables at runtime and ipQueue and ipDevice always seem to be different.

Thanks for any info.

It would help to know which OS you are under.

I am using Mac OSX. Anyother info that would be usefull?

Hmmm.

Unfortunately Mac is probably the paltform that has the least active support at the moment. (Mac game hackers are kinda hard to come by.)

My guess is that there is a race in the implementation of the hub hardware such that which pad is “seen first” by the hub is non-deterministic.

if so there is probably no software solution.