Are there are any Java libraries to talk to a PS3 controller?
I received a Mindstorms NXT set for Christmas. The first thing I did was install lejos on it so I can program the thing in Java. I built my first robot which basically drives until it gets close to something then swings its arm in a stabbing motion.
I thought, what better than create some libraries so I can control this thing with a PS3 controller. I am searching online, but don't see much that talks to a PS3 controller from Jav开发者_开发知识库a. Anyone know of anything?
There doesn't seem to be a pure java lib for the sixaxis, as opposed to the wiimote, but there is a C++ library that allows a computer to be controller wirelessly via the controller:
link
I figure you can make that java simply by adding a wrapping through JNI... Of course it might be more work if you're not working with a pc.
精彩评论