Joystick support in Java
Asked Answered
M

1

12

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.

Microdot answered 24/4, 2012 at 17:15 Comment(0)
B
14

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

It works even on Linux :)

Brainpan answered 24/4, 2012 at 17:22 Comment(4)
I was wondering why my searches didn't turn up more libraries but it seems as jinput covers everything and is very simple to use. Thanks.Microdot
@D.S.Schneider I don't know about others OSs, but sadly I needed to change the permissions of the /dev/inputXX every time (not so simple)Brainpan
@D.S.Schneider "Even on Linux" was probably referring back to my question, where I stated I wanted it to work on Windows, not to how difficult it is to do on Linux in general.Microdot
@Ferrybig it was 5 years old answer, links die. It seems they moved to github. Answer edited.Brainpan

© 2022 - 2024 — McMap. All rights reserved.