JInput is a Java API for accessing input controllers, originally intended for game controllers.
Questions tagged [jinput]
62 questions
0
votes
2 answers
Using JInput in Intellij Idea project?
I'm developing a game in Java (8) using Intellij Idea. Since I need controller support (XBox Controllers and the like), I seems the JInput library would help me support that.
I added the net.java.jinput:jinput:2.0.6 library via maven (project…

Petter Thowsen
- 1,697
- 1
- 19
- 24
0
votes
2 answers
Lag when frequently checking LWJGL/JInput gamepad buttons or axis, how do I fix it?
I'm in the process of creating a multiplatform (but OpenGL favoring) game engine on Java for Android/OUYA and PC, and the PC platform adapter is giving me some issues when rapidly checking gamepad state.
I'm currently using LWJGL/JInput to write the…
user1363917
0
votes
1 answer
Jinput not working for joomla
I've been stuck on this problem with no clue as to why this doesn't work.
I'm using Joomla 2.5 and building my own component.
I have a 'Books' and 'Book' view. 'Books' lists all the books from the database and 'Book' is where I add/edit my book…

Moo33
- 1,251
- 3
- 15
- 27
0
votes
0 answers
How to write an ActionListener for a GamePad without an API: Where to begin?
There are a couple solutions out there in the form of APIs for detecting GamePad input, but I can't find how it's done from scratch. I ran a test for a couple types of listeners, and they don't seem to detect the button presses on my XBOX360…

MrMysterious2502
- 105
- 1
- 7
0
votes
1 answer
LWJGL How to move using x, y, z
Hello I am having trouble using lwjgl to add into the camera coordinates. I think its to do with the gluPerspective I will post my code but could you also tell me how to implement moving in the directing of the mouse. And put a cross hair in…

user3343497
- 194
- 1
- 1
- 9
0
votes
2 answers
How to interpret gamepad-rumblers?
I'm experimenting with the rumblers on my gamepad and when I 'read' the gamepad
(with JInput),
it finds 5 rumblers.
So I expected the gamepad to have two rumblers on each side and one in the middle.
However, that seems not to be true, because :
The…

Jeffery
- 9
- 1
0
votes
1 answer
How to keep detecting if button is pressed in JInput?
Button and HAT presses in JInput is based on events, meaning if I press Button 1, it will only fire once while I'm holding it down and once again when I release the button. I want to make it so that if I have the button held down, it will still keep…

Propeller
- 2,465
- 6
- 35
- 49
0
votes
1 answer
Get values from URL as array. JInput
How can I get string values from URL and save them as array, right now URL looks like this somename[]=xxxxxxxxx&somename[]=zzzzzzzzz&somename[]=zsdasd
$jinput = JFactory::getApplication()->input;
$nameArray = $jinput->get('somename');
If I…

user1876234
- 857
- 2
- 14
- 28
0
votes
2 answers
If statement not comparing JInputDialog value
So I have an If Statement. It's set to compare a value taken fron user input using JOptionPane.showInputDialog. But if the values are the same, it doesn't do anything...
Example: The user has to enter the value 4. When the Input Dialog appears, the…

José María
- 2,835
- 5
- 27
- 42
0
votes
1 answer
Slick2D - Jar'ed Game can't load jinput-linux64 library
I'm working on a game that's using Slick2d library, I'm using Eclipse IDE, 64-bit java 7, on Linux Ubuntu. In IDE i don't have any problems when i run the game (java-7 64-bit is also set for the project), but when i'm trying to run an exported jar,…

answer42
- 65
- 5
0
votes
2 answers
lwjgl + slick2d + jinput error on 64-bit linux
I am using Linux (Ubuntu 12.04) with 64-bit java 7 and Eclipse (Indigo).
On the game project we are using slick2d and along with it lwjgl. I was halted by the following errors.
(fixes explained in the answer)
java.lang.UnsatisfiedLinkError: no…

Ville Myrskyneva
- 1,560
- 3
- 20
- 35
0
votes
1 answer
Using the JInput
I have done A LOT of researching but I can't seem to find a basic code for JInput that gets the X and Y axis of the controller. Also, to "select"/set your controller, how do you filter out the mouse and keyboard? Thanks!
user1832583
0
votes
1 answer
JInput won't detect Controller Win 7 64 bit
I'm trying to detect a Controller device with JInput. It works fine on my Win7 32 bit PC and Java 32 bit VM. But unfortunally it doesn't find the controller, when i start the programm on a Win7 64 bit PC with Java 64 Bit VM. My code is like…

Blakhar
- 204
- 3
- 13
0
votes
1 answer
LWJGL input with PS3 controller?
I'm kind of new to LWJGL (I have done some things with it in Minecraft), and I need some help. I want to make a mod for Minecraft where the user could have the option of using their PS3 controller. I have looked for JInput tutorials for beginners,…

mattbdean
- 2,532
- 5
- 26
- 58
-1
votes
1 answer
Possible JInput memory leak
This post checking-for-similar-controllers would seem to indicate that controller connection/disconnection functionality doesn't exist. Our GUI has a requirement to detect when a device gets removed (e.g. cable pulling ) currently it does this by…

justinp
- 1
- 1