0

I make a 2D game in Java with LWjgl, and I use a XBox 360 controller for the input. I want to add a second player, so I need to distinguish the two Xbox controllers.

But naturally, the two controller are like one only. If I press a bouton on controller number 1 or 2, the result is the same, I can't manage actions from each without imply the other.

Can someone help me pls ?

pikameuh
  • 149
  • 1
  • 1
  • 12

1 Answers1

1

Try to google next time. This is what I got searching "lwjgl xbox 360 controller". The first result is a youtube video. Go check it out, it was the solution for you (kinda, but you can get there).

EDIT

https://www.youtube.com/watch?v=jwFzrBiH8X0

nervousDev
  • 72
  • 9
  • I told in my answer that wasn't the solution you were looking for but you can get there by watching the video. – nervousDev Jan 20 '16 at 18:45
  • yeah, but i've already use the xboxController. Since I've find a solution, with a list<> of xboxController, and an ID. – pikameuh Jan 21 '16 at 19:39