I've re-installed the driver and rewritten my code, it seems to me the driver is properly installed now. But another problem has appeared , so I've not tested it yet. Can anybody help me with my next problem?

Be warned! These are not an official release and are nowhere near up to date with the current code base. However, they are the last consistent builds that seem to work and have natives for each platform.

Its a webstart demo that attempts to use JInput, it works happily here. Also, could you let us know what version of java you're using (including the full version number) since some releases had significant JNI (Java Native Interface) issues.

the complete code of the thread. The code in sendAxis() might have some errors, but I'm sure my problems are not coming from there, because he can't come in that code, because I get the errorMessage "controller is null" on screen

Ok, now we're getting somewhere. Takeout the gamepad check for now, since your gamepad may be being reported as something else. Also you might consider just dumping out the size of the controllers array at the start (I know you've done that before, just for this version )

Then let us know what you're getting on the console, including the junk JInput dumps out.

I don't have much more consoles. This is the other, the debugging console:

Quote

Listening on 4582User program runningUser program finished

my own code is in a package called idp1the libraries are in net/java/games/input and net/java/games/util/plugin(were in .jar files, but that didn't work so I tried it extracted, with the same result. On the moent it is still in extracted state)an overview:-Source Packages---idp1------Bestuuring.java------Main.java------<more files, witch I think don't matter>---net.java.games.input------<All the files>---net.java.games.input.test------<All the files>---net.java.games.util.plugin------<All the files>---net.java.games.util.plugin.test------<All the files>

(\ /)(O.o)(> <)This is bunny. Copy bunny into your signature to help him on his way to world domination.

as said in the JInput Introduction sticky on top of this forum, I placed the dll as following:

Quote

Installation of the plugin(s):-----------------------------------Nearly all plugins consist of two files. One of them is the native library (e.g. dxinput.dll, libjinput.so) and the other one is the java part of the plugin (any official name for that?). There are multiple ways for installing a plugin:

1) the easiest but most (system) polluting way:create a folder named 'controller' inside your ${jre.home}/lib/ext folder and copy the two files in.

The project itself is located on another harddrive, but that was never a problem and I don't know why it should be a problem now...

(\ /)(O.o)(> <)This is bunny. Copy bunny into your signature to help him on his way to world domination.

You need to have the jar and dll in the same location. So the dxinput.jar needs to be in there with the dll and the source needs to be removed from your directory. Really you should be working off the jars...

the dxinput.jar is in ${jre.home}/lib/ext/controller/ together with the dll

I never extracted that jar, only the jars in the applications classpath (jinput.jar and jutils.jar). The reason was to see if it would work extracted. But it did not make a difference (as you would propably have expected )

(\ /)(O.o)(> <)This is bunny. Copy bunny into your signature to help him on his way to world domination.

Ok, still can't work out why the plugin isn't being picked up. If you just want to get up and running, you could try setting the System Property "jinput.plugins" to the name of the plugin class you want to use before you use the default environment,

No, its really not! You can of course put a check in to detect platform (System.getProperty("os.name")) and choose the right plugin dependent on that. Its all a bit mucky and plugin system should work. When you're a bit happier and sure you want to use it, its probably worth revisiting.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org