JInput is a Java API for accessing input controllers, originally intended for game controllers.
Questions tagged [jinput]
62 questions
1
vote
0 answers
Java getDefaultEnvironment() does not rescan hardware
I am trying to get a refresh button to reload a list of controllers however the hardware check is only preformed once no matter how many times I call it
Controller[] controllers = ControllerEnvironment.getDefaultEnvironment().getControllers();
This…

Dragongeek
- 263
- 1
- 5
- 23
1
vote
0 answers
Getting wildcards with Jinput->get
I seems Jinput->get removes all wildcards like * and %. Is that correct?
I have user input for a 'place of birth' of a person. So if someone enters Amsterd*, then through Jinput->get I get back Amsterd, without the wildcard.
Is there something I do…

Polleke
- 11
- 1
1
vote
1 answer
JInput's getPollData() does not work
I´m currently dealing with some Problems concerning dual mouse input. I've looked up several libraries and decided that JInput would do best. Although i was able to get a list of all devices plugged into my laptop, i couldn't retrieve any PollData.…

aquatyp
- 11
- 3
1
vote
1 answer
How to retrieve and show resultset of data in a joomla module.
This is my code .
I want to display the firstname, lastname and phone number, but my code is only displaying 1 number
I want get and show a series of numbers from the database with for and while.
mod_phonebook.php

Hesam Tabatabaei
- 23
- 5
1
vote
5 answers
Get Dynamic Post Fields/Data via JInput in Joomla
Basically as the question describes, I need to get "POST" data in Joomla 2.5/3.xx and I want it through the JInput (the new talk of the town).
Now everything is fine and dandy, until my further requirements needs those fields/data to be dynamic, ie.…

Mohd Abdul Mujib
- 13,071
- 8
- 64
- 88
1
vote
1 answer
How to find when stick is released
I have problem to check when stick in my gamepad (XBox) is released.
With buttons when I press the first I get pollData = 1.0 and after releasing it I get pollData = 0.0.
With analog sticks I don't have such event like pollData = 0.0
Thanks in…

MAGx2
- 3,149
- 7
- 33
- 63
1
vote
1 answer
JInput "no jinput-dx8 in java.library.path" Error
Hi I'm trying to make a game in java that gives users the option to a joystick or gamepad to control movement. So I found something called "JInput" that is suppose to make it easy to detect all connected game controllers. The problem is that when…

Petezah
- 1,465
- 4
- 26
- 30
1
vote
1 answer
how pass form from module to component in joomla 3.1
I wana create a front-end joomla component and this is my first experience.
here is important things:
1-component/controller.php
class TestController extends JControllerLegacy
{
public function display($cachable = false, $urlparams =…

user2726957
- 169
- 1
- 13
1
vote
2 answers
Jinput init's controllers with up and left as true
I tried using it on this simple code, and JInput makes the controller automatically go up and left! IT seeems that input.isControllerUp(Input.ANY_CONTROLLER) starts out as true! How can I fix this?
import org.newdawn.slick.AppGameContainer;
import…

William
- 8,630
- 23
- 77
- 110
1
vote
3 answers
How to get file tmp_name using JInput
I'm a bit stuck with this. I have this bit of code which manages to get the filename of my file:
class AControllerA extends JControllerForm
{
function save()
{
//Upload file
jimport('joomla.filesystem.file');
$jinput…

Moo33
- 1,251
- 3
- 15
- 27
1
vote
0 answers
New Option for Each Controller Found
Possible Duplicate:
Values of JComboBox
I have a code like this:
import net.java.games.input.Controller;
import net.java.games.input.Controller.Type;
import net.java.games.input.ControllerEnvironment;
public class ControllerFinder
{
public…
user1832583
1
vote
3 answers
Java Working Directory
I'm pretty new to programming, so this should be an easy one. I'm switching from eclipse to netbeans and I am trying to add libjinput-osx.jnilib to my working directory. I have step by step instructions for eclipse, but not netbeans. I'm about 2.5…

spuder
- 17,437
- 19
- 87
- 153
1
vote
1 answer
Using Jinput to pop up a JFrame WIndow alarm
Using Jinput and Java in Netbeans, I'm working on a very small project that simply Pops up a JFrame alarm window when lets say a user presses down on the 'K' on the keyboard and terminates the JFrame alarm window when the user lets go of 'k'. In my…

Humble Hermit
- 125
- 1
- 8
0
votes
1 answer
Checking for similar Controllers in JInput
I'm trying to have several gamepad at the same time in JInput, while also checking for newly plugged gamepad. Here is the code used to check for new controllers.
new DirectAndRawInputEnvironmentPlugin().getControllers();
If I run this code several…

Klems
- 35
- 5
0
votes
0 answers
Why doesn't ControllerEnvironment.getDefaultEnvironment() detect any controllers?
The program that the following kotlin code is from is supposed to detect a specific controller and its left joystick using Jinput, and then translate the left joystick's position(for now just the X axis) to a position on the screen and set the…

Zytron
- 57
- 5