This is an old article with instructions on how to install Jinput in Netbeans, but the idea in Eclipse is the same. Follow the instructions, but to add the jinput.jar file to the project, you need to go to the menu "Project"> "Properties"> "Java build path"> "Libraries"> "Add JAR" or "Add external JAR"
Once you have installed it, this one seems to be a pretty good forum post on how to start writing code for the input controller.
Let me know if you need more help by following the instructions in Eclipse.
source share