Well , each gamepad has a different id , eh ?
I never played around with the gamepad object , so this is just ontop of my head
Give each player an id variable that corresponds to the id of the gamepad you use to control the player with
On gamepad key pressed
If player.id = gamepad.id
are we talking about the pre-set UID or the manually settable instance variables?
i'm working on something to get this correct atm but i dont really come to a working result.
EDIT: Whiteclaws i'm sorry, stupid question. it's not instance variables. but how can you set the same ID for the gamepad1 and the player1?