Java 中的操纵杆支持

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10302764/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-31 00:27:55  来源:igfitidea点击:

Joystick support in Java

javajoystick

提问by biziclop

Are there any libraries out there allowing access to joystick input in Java?

是否有任何库允许访问 Java 中的操纵杆输入?

The minimum requirements would be for it to work under Windows, to be able to detect all connected joysticks and to handle axes and buttons.

最低要求是它在 Windows 下工作,能够检测所有连接的操纵杆并处理轴和按钮。

回答by polypiel

Try JInput https://github.com/jinput/jinput

试试 JInput https://github.com/jinput/jinput

It works even on Linux :)

它甚至适用于 Linux :)