Are there any libraries out there allowing access to joystick input in 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.
Try JInput https://github.com/jinput/jinput
It works even on Linux :)
来源:https://stackoverflow.com/questions/10302764/joystick-support-in-java