PS3 controller linux

Started by Krux, March 22, 2011, 16:25:22

Previous topic - Next topic

Krux

Hi

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?


kappa

have a read of the lwjgl input tutorial here, the Controller.getEventState() should work the same way.