JInput 2 Problems

Got someone trying out the latest version of my game (which is now using JInput 2, woot!) on win2k sp4. They get this when starting:


The process-entry-point "RegisterRawInputDevices" wasnt found in the DLL "USER32.dll"

in a dialog that pops up from windows system. Accompanied by the standard:


Caused by: java.lang.UnsatisfiedLinkError: C:\Dokumente und Einstellungen\pyo\Anwendungsdaten\Sun\Java\Deployment\cache\javaws\http\Dwww.cokeandcode.com\P80\DMtilt2000\RNnatives-win32.jar\jinput-raw.dll: Die angegebene Prozedur wurde nicht gefunden

The dlls are definitely downloaded and in the cache - I’m willing to accept their corrupt along the way. However, I’ve never seen anything like the dialog message above in relation to DLLs/JNI in Java.

Any ideas…

Kev

PS. http://kaioa.com/k/jinputdialog.png
PPS. Bonus points for those who can guess who the user was :slight_smile:

I have a feeling that the RAW stuff only works on windows XP

Endolf

Ah, good old Onyx and his doze 9, right? Anyway, yes, rawinput only works on XP, which is the reason I made two dlls (one -raw and one -directx). The raw one should simply fail to load and be ignored. Is that not the case or is the entire program failing?

  • elias

I think he’s upgraded all the way up to 2k now :o

In this case the program doesn’t fail (since I don’t fail on controller creation failure) - but the controllers don’t work at all.

Kev

It’s fixed in SVN now. Endolf: there’s now two svn revisions with fixes (this fix and a build fix to mac os x to merge libjinput-legacy.jnilib with libjinput.jnilib) so you might want to merge with CVS again. Jeff: please approve my developer status to help endolf :slight_smile:

  • elias

Hi

CVS was updated some time ago with the commented out raw pluging loading. In jinput 1 I was very lazy and hadn’t put in the isSupported method on a plugin. I had done it internally on the linux one I think. If we put this back in, then the raw one would not load, but wouldn’t fail either, and jinput would work, under xp it would be fine.

How does this sound?

P.S. what revision was the mac build fix done in?, i may need to merge again, but might not :slight_smile:

Endolf

The mac os x build fix was rev. 10, the raw plugin fix is rev 11. I’ve fixed the raw plugin by simply catching all exceptions at load time and ignore the plugin if it throws. Much easier, IMHO.

  • elias

I think I have revision 3 in cvs, so it’s well out of date :slight_smile:

I’ll give it a prod at some point :slight_smile:

Endolf

When I had raw problems, btw, I was able to force it to only load the non-raw one with command line options.

If the current fix still doesn’t solve your problem I could post the -D Im using…

Yes please :slight_smile:

Endolf

Sorry, this dropped off my queue.

is this fixed or should I go find those -D flags?