Questions tagged [jinput]

JInput is a Java API for accessing input controllers, originally intended for game controllers.

62 questions
0
votes
0 answers

How can you fix an UnsatisfiedLinkError in a Kotlin JVM program using JInput?

I'm attempting to make a program in Kotlin for a JVM application that takes PlayStation 5 controller input from the left joystick only and sets the cursor position on screen to the position of the joystick. For example, if I move the joystick 75% to…
Zytron
  • 57
  • 5
0
votes
1 answer

Java on Pi arm64 with JInput

I am still trying to get my Bluetooth controller working on my pi with Java. I found the project jinput from https://github.com/jinput/jinput and installed the dependencies: sudo apt-get install libjinput-java libjinput-java-doc libjinput-jni When…
Stephan
  • 335
  • 3
  • 12
0
votes
1 answer

How can I print the Joystick click to the console via the JInput library?

I am working on Java map project. I use the Logitech extreme 3D pro Joystick and JInput library. I want to write text to the console when the buttons on the joystick are clicked. But I can't do that, can anyone help?
0
votes
0 answers

Java using JInput controller, improve performance

I am writing a Java video game which works well with the keyboard. I want to also add joystick support and found the convenient class JInput. However (apparently) unlike keyboard input which automatically fires an event, gaining input from a…
FatFrank
  • 73
  • 1
  • 10
0
votes
1 answer

IntelliJ, JInput and the java.library.path

I'm working on a java project that uses both Jogl and JInput, and I working in IntelliJ. I'm having some issues with the application not being able to find various DLLs. I know the recommended way is to extract the DLLs to a folder and then point…
Delmania
  • 812
  • 10
  • 20
0
votes
1 answer

JInput 2.0.7 object casting error

I've followed the steps in this tutorial exactly to set up JInput 2.0.7, but I keep getting the following error: Loading: net.java.games.input.OSXEnvironmentPlugin java.lang.ClassCastException: java.lang.String cannot be cast to [Ljava.lang.Object; …
Kiran
  • 617
  • 6
  • 20
0
votes
1 answer

How can I build and run my gradle project, when it needs binary library files (JInput)?

I'm trying to use JInput for my project, and the library needs some binaries for my application to run. I've discovered that, the required binaries are inside the library. But still, I get an UnsatisfiedLinkError when doing a gradle run because it…
birgersp
  • 3,909
  • 8
  • 39
  • 79
0
votes
1 answer

How do I get gamepad input in Java? (Windows 10)

I'm creating a pretty basic game in my free time, and before I really get into it I want to learn how to include controller support. I've tried plenty of tutorials and different libraries, but they all in some way seem to require JInput (and LWJGL,…
Turruc
  • 1
  • 1
  • 2
0
votes
1 answer

Suppress JInput Warnings

My JInput code works fine, it just prints these warnings to the console every time the program starts. I need to suppress them. Nov 29, 2017 8:59:55 AM net.java.games.input.DefaultControllerEnvironment getControllers WARNING: Found unknown Windows…
Mike Fitz
  • 101
  • 1
  • 9
0
votes
0 answers

programing the keypad with JInput (Java)

I'm programing a game with Java (Jogl, JInput). I'm not sure about my code. How to record keys strength? First I record a pair (keyName, millisTime) on any keypad's event. Then I try to update game's state with new key's value. I think I have an…
manueldahmen
  • 71
  • 2
  • 6
0
votes
1 answer

Multiple while loops inside a for loop

I have created a for loop that detects the amount of devices connected to the computer. This then creates 2 JFrames, so every devices has it's own window. I now want to add data to those windows, so I created a while loop inside the for loop. But…
user6421669
0
votes
2 answers

40 If-Statements in a Loop, How to Avoid?

I am working with the library JInput to detect controller input in a java game. However, in order to get the direction the axis is moving, I use this: gamePadContr.getComponent(Identifier.Axis.X).getPollData(); This gives me a decimal between -1…
HeroicO
  • 25
  • 1
  • 1
  • 4
0
votes
2 answers

Jinput Poll Data Never Changes

I am attempting to create a simple test program to get familiar with the JInput Library for another project. I have tested my controller with the all of the provided test classes and it works as expected. However, when I attempt to poll the…
daemor
  • 19
  • 10
0
votes
1 answer

JOOMLA: How to retrieve values of all the fields with JInput but without jform[]

As we know we can retrieve values of all the fields if they have names like name="jform[something]" and we can use the code: $jinput = JFactory::getApplication()->input; $formData = new JRegistry($jinput->get('jform', '', 'array')); But is there…
stckvrw
  • 1,689
  • 18
  • 42
0
votes
1 answer

How to get url param in Joomla plugin?

I'm trying to get url param in Joomla plugin while getting adress http://domainname.com?mobile=1. I'm using code: $app = JFactory::getApplication(); $jinput = $app->input; $var=$jinput->get('mobile', 'nothing', 'string'); but I get $var equal to…
Barto
  • 469
  • 1
  • 6
  • 15