Hello Guest

PS3 controller linux

  • 1 Replies

Offline Krux

  • *
  • 24
PS3 controller linux
« on: March 22, 2011, 16:25:22 »

I am trying to use the PS3 controller on linux, but i have some problems.
jstest /dev/input/js0 has a different button mapping than lwjgl, but that is not directly a problem, it is just annoying.
The real problem is, that the Buttons △○ and ✕ do not work all other including □ do work. They all work perfectly with jstest.

One last question, how can I catch button events like button up and button down? I have looked in the API, but there is no event class. I would like to work on something similar to the event struct in SDL.

Any ideas?


Offline kappa

  • *****
  • 1319
Re: PS3 controller linux
« Reply #1 on: March 22, 2011, 19:32:50 »
have a read of the lwjgl input tutorial here, the Controller.getEventState() should work the same way.