有没有可以与 PS3 控制器对话的 Java 库?
我收到了一套 Mindstorms NXT 圣诞节礼物。我做的第一件事就是在上面安装 lejos,这样我就可以用 Java 对其进行编程。我建造了我的第一个机器人,它基本上可以驱动,直到它接近某物,然后以刺伤动作摆动手臂。
我想,还有什么比创建一些库更好的方法,这样我就可以用 PS3 控制器来控制这个东西了。我正在网上搜索,但没有看到太多与 Java 的 PS3 控制器对话的内容。有谁知道什么吗?
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 Java. Anyone know of anything?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
与 Wiimote 不同,似乎没有针对 Sixaxis 的纯 Java 库,但有一个 C++ 库允许计算机通过控制器进行无线控制
: davieslim.com/ps3/use-ps3-controller-in-windows-wireless-bluetooth/" rel="nofollow noreferrer">link
我想你可以通过 JNI 添加包装来简单地制作该 java...当然,如果您不使用电脑,工作量可能会更大。
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.