Hey folks,

I'm trying to create an Android game that would be two players, played with 
gamepads.  I can connect two devices and the input is captured by my game 
but I haven't found a good way to determine who is player 1 and who is 
player 2.  Linux normally defines this by connection order as 
/dev/input/js0 and /dev/input/js1 respectively.  The most I could find 
while digging through the documentation was the deviceID that triggered a 
keyDown/keyUp command (which according to the docs should not be used 
reliably) or the device Descriptor which is a long hash representing the 
device but that can have duplicates if there is more than one of the same 
device connected (like two gamepads...).

Is there some Gamepad/Joystick API that I'm missing?  Or am I correct in my 
observations that "gamepad support" as listed in the Honeycomb-and-on 
updates is merely just new KeyDown/KeyUp keycodes, etc.?

-Ryan

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to