11

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.

biziclop
  • 48,926
  • 12
  • 77
  • 104

1 Answers1

14

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

It works even on Linux :)

polypiel
  • 2,321
  • 1
  • 19
  • 27
  • 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. – biziclop Apr 24 '12 at 22:57
  • 1
    @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) – polypiel Dec 31 '13 at 19:43
  • 1
    @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. – biziclop Jan 22 '14 at 15:51
  • @Ferrybig it was 5 years old answer, links die. It seems they moved to github. Answer edited. – polypiel Sep 22 '17 at 10:09