Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (121)
games submitted by our members
Games in WIP (577)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  JInput 2 Problems  (Read 2855 times)
0 Members and 1 Guest are viewing this topic.
Offline kevglass

JGO Kernel


Medals: 188
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Posted 2006-05-01 16:51:53 »

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:

1  
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:

1  
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 Smiley

Offline endolf

JGO Coder


Medals: 7
Exp: 15 years


Current project release date: sometime in 3003


« Reply #1 - Posted 2006-05-01 20:44:31 »

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

Endolf

Offline elias

Senior Duke





« Reply #2 - Posted 2006-05-02 14:58:27 »

Ah, good old Onyx and his doze 9<something>, 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

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kevglass

JGO Kernel


Medals: 188
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #3 - Posted 2006-05-02 15:02:55 »

I think he's upgraded all the way up to 2k now  Shocked

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

Offline elias

Senior Duke





« Reply #4 - Posted 2006-05-02 15:13:57 »

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 Smiley

 - elias

Offline endolf

JGO Coder


Medals: 7
Exp: 15 years


Current project release date: sometime in 3003


« Reply #5 - Posted 2006-05-02 18:49:23 »

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 Smiley

Endolf

Offline elias

Senior Duke





« Reply #6 - Posted 2006-05-03 09:01:40 »

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

Offline endolf

JGO Coder


Medals: 7
Exp: 15 years


Current project release date: sometime in 3003


« Reply #7 - Posted 2006-05-03 11:43:17 »

I think I have revision 3 in cvs, so it's well out of date Smiley

I'll give it a prod at some point Smiley

Endolf

Offline Jeff

JGO Coder




Got any cats?


« Reply #8 - Posted 2006-05-03 21:23:32 »

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...

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline endolf

JGO Coder


Medals: 7
Exp: 15 years


Current project release date: sometime in 3003


« Reply #9 - Posted 2006-05-04 17:53:00 »

Yes please Smiley

Endolf

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jeff

JGO Coder




Got any cats?


« Reply #10 - Posted 2006-07-13 19:57:19 »

Sorry, this dropped off my queue.

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

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

theagentd (18 views)
2014-10-25 15:46:29

Longarmx (52 views)
2014-10-17 03:59:02

Norakomi (45 views)
2014-10-16 15:22:06

Norakomi (34 views)
2014-10-16 15:20:20

lcass (39 views)
2014-10-15 16:18:58

TehJavaDev (68 views)
2014-10-14 00:39:48

TehJavaDev (68 views)
2014-10-14 00:35:47

TehJavaDev (60 views)
2014-10-14 00:32:37

BurntPizza (74 views)
2014-10-11 23:24:42

BurntPizza (45 views)
2014-10-11 23:10:45
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!