How to implement Jinput in game?

Hello! I’m new to this forum. Also new to Java game programming.

I followed the Getting started tutorial, downloaded the jinput binary files and ran all the tests posted and everything works fine - my gamepad was detected and polled. Now I’m not sure how to implement this in my game so that my game can poll the pad. How would I go about doing this or what is the next step to take.

Irece

Hi

Just poll the devices, or check the event queues as part of your main game loop, same as you do for updating sounds/AI.

HTH

Endolf