JInput is a Java API for accessing input controllers, originally intended for game controllers.
Questions tagged [jinput]
62 questions
3
votes
4 answers
Java Jinput: rescan / reload controllers
I am using java jinput library to read data from joypad, and I have trouble reloading Controllers, I use this to load them:
public Controller[] findStickControllers() {
ControllerEnvironment ce =
…

kajacx
- 12,361
- 5
- 43
- 70
3
votes
2 answers
JInput doesn't update / refresh
I'm using JInput for Gamepad control on Win7 64bit. I ran into a problem: Once I get the DefaultEnvironment the controller list doesn't get updated or refreshed.
for (Controller c :…

atx
- 266
- 3
- 15
2
votes
3 answers
Time delay and JInput
OK, I don't know how to word this question, but maybe my code will spell out the problem:
public class ControllerTest
{
public static void main(String [] args)
{
GamePadController rockbandDrum = new GamePadController();
…

Brendan Lesniak
- 2,271
- 4
- 24
- 48
2
votes
4 answers
JInput on RaspberryPi
I am trying to get JInput working on a raspeberryPi. I know it is not ideal to use JInput without an ide, but the Raspberry Pi is too slow to work with most of them. I have managed to sucessfully compile and run my program from the command line on…

Laura
- 41
- 4
2
votes
1 answer
Can't save filenames into the database with JInput
I have a form with input fields of type text and file. I have a problem of the filenames not saving in the database but everything else does. I vardumped $myForm and everything is there but the files, so I created another array with the filenames…

Moo33
- 1,251
- 3
- 15
- 27
1
vote
1 answer
Jinput library not found in java.library.path
I am trying to use jinput with a wrapper library (procontroll) in a Java application on OS X.
The problem is in the jinput library. When control gets to net.java.games.input.OSXEnvironmentPlugin's System.loadLibrary call, which looks for…

user699397
- 31
- 1
- 3
1
vote
1 answer
How to use ControllerListener jinput java
How to add a ControllerListener to a controller in the jinput library.
I know the ControllerListener class is an interface, and that in ControllerEnvironment has a method to add the listener, but even if i do it nothing happens, how do i do it to…

Christian Mantini
- 41
- 7
1
vote
1 answer
How to include files that are built (during build) in the built jar?
This might be dumb (please guide me), but I'm trying to include some binaries from a dependency in my package using Maven.
The dependency is jinput, and the binaries are "unpacked" during build. Since the binaries are unpacked after the build,…

birgersp
- 3,909
- 8
- 39
- 79
1
vote
1 answer
Using Keyboards in JInput without root privileges
I'm writing a program that needs to poll keyboard keys at specific times, and rather than going through the effort of writing my own event-driven keyboard polling class, I thought I'd use JInput's built-in Keyboard class.
It works perfectly when I…

Haldean Brown
- 12,411
- 5
- 43
- 58
1
vote
1 answer
Jinput on linux arm (raspberry pi)
After I finished programming a small game, which uses two DS4-Controllers, I tried to run it on my raspberry pi. Since java is installed in raspbian, I only need to install jinput, which I did by typing sudo apt-get install libjinput.java.…

Timf2000
- 29
- 4
1
vote
1 answer
How to install jinput in eclipse?
The last days I searched how to use Controllers like DS4 in java and it got me to jinput. After downloading the zip file. I added the two JARs to the project and tryed to run a test code, that I found in an installtion guide.
The problem is that it…

Timf2000
- 29
- 4
1
vote
1 answer
Error in SQL Syntax using JINPUT (Joomla)
As previously suggested, I'm using JINPUT with Joomla to submit data into a SQL table I have prepared. When the submit button is pressed I get the following error:
You have an error in your SQL syntax; check the manual that
corresponds to your…

BConstable
- 151
- 1
- 1
- 9
1
vote
2 answers
Jinput - Get Mouse Location
I am attempting to print out the mouse location using Jinput:
public static void main(String[] args) {
input = new InputManager();
while (true) {
for (Mouse mouse : input.getMice()) {
mouse.poll();
…
user3011902
1
vote
0 answers
Problems Adding jinput Dependencies from Maven
I'm trying to add jinput to my project. I'm using Netbeans as an IDE. I'm really unable to find any resources on jinput that aren't broken or ancient. I was really hoping the Maven approach would work but it seems it can't find the appropriate…

glang
- 31
- 4
1
vote
1 answer
Setup jinput maven project
I need a maven project via which I will be able to retrieve signals from my joystick. I set it up, by calling mvn package command I'm building JAR file. But there are some problems with jinput native libraries. I added dependency for jinput 2.0.6…

Yengibar Manasyan
- 81
- 10