JInput webstart demo

Hi
Updated jinput to finally work with webstart, thanksgo to kevglass and jeff for input into this. To see it running go here, all the files can be viewed here. Don’t steal the jars from this site, they probably won’t work, and I don’t plan on ever updating them, its just to show it working and the needed jnlp entries.

Cheers

Endolf

P.S. Greg, if you could post an updated mac osx jinput plugin i’ll update the jnlp. I had to use the build on the file sharing section, which dates right back to august, so it’s prolly well out of date :slight_smile:

Failed on OSX JDK1.4.2_001

Failure Message:
An error occurred while launching/running the application.

Title: JInput webstart demo
Vendor: New Dawn Software
Category: Download Error

Unable to load resource: http://www.newdawnsoftware.com/jinput/HIDWrapper.jar

Exception:
NLPException[category: Download Error : Exception: java.io.IOException : LaunchDesc: null ]
at com.sun.javaws.cache.DownloadProtocol.doDownload(DownloadProtocol.java:605)
at com.sun.javaws.cache.DownloadProtocol.getResource(DownloadProtocol.java:753)
at com.sun.javaws.LaunchDownload.downloadJarFiles(LaunchDownload.java:621)
at com.sun.javaws.LaunchDownload.downloadEagerorAll(LaunchDownload.java:544)
at com.sun.javaws.Launcher.downloadResources(Launcher.java:742)
at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:298)
at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:199)
at com.sun.javaws.Launcher.run(Launcher.java:167)
at java.lang.Thread.run(Thread.java:552)

Hi
Ooops, forgot to set the file permissions on the mac libraries, should work now.

Cheers

Endolf

Hurray! It works!

So now someone needs to write a little article on doing JInput with Web Start. Do you want to Endolf or should I look into doing it?

JK

Doh!! Figures it works for Jeff, it doesn’t work for me… I get a blank window that says Controller Read Test.

That soudns like it failed to find any devices.

What devices do you have plugged into your Mac?

On my g4 Tibook it found my trackpad and mouse button. (Although now that I think of it, it failed to find KB which is odd and should probably be looked into.)

[quote]Hurray! It works!
[/quote]
excellent[quote]So now someone needs to write a little article on doing JInput with Web Start. Do you want to Endolf or should I look into doing it?

JK
[/quote]
It’s pretty simple, you follow kevs guid on webstart here and just add the properties that are in the jnlp file for each platfrom, and as long as you are using a cvs build or a nightly after the 28th it should just work :slight_smile:

Endolf

[quote]Doh!! Figures it works for Jeff, it doesn’t work for me… I get a blank window that says Controller Read Test.
[/quote]
Agree with jeff, sounds like it’s found no devices at all, it’s a very old build so its highly possible. Jeff said that the build server was doing something funny, if there are newer builds tonight when I get home that have the binaries in them then i’ll upload some fresh ones and post back.

Endolf

I can add a “special considerations” section at the bottom if you want. Not sure if anything other than JInput has any worries tho :slight_smile:

Kev

Hard to imagine it wouldn’t find any devices out of the track pad & keyboard that are built-in, the external USB mouse, or the macally iShock II gamepad.

I will have a look to see if i have old jinput code in my ~/Library/Java/Extensions folder that could be causing problems…

I know that the last time I checked a month ago that most of the devices were found.

** EDIT **
That was it. When will I learn… seems to be working now.

Unfortunately because of apparent Apple bugs, the single button trackpad shows up with both a left and right button…sigh. Even games that do the right thing and try to detect what buttons are available will get screwed.
Argh.

The OS X bug is still there where no qualifier keys are detected… e.g. pressing shift, ctrl, option(alt), command,… don’t trigger any changes on the keyboard window.

This is of course a major pain because many games like to use those keys for fire, jump etc.

I thought that problem was going to be fixed with Panther… apparently not.

I suggest some colour is added to the test program for binary switches (buttons, keys, direction pads) so that when a key is pressed not only does it change the text from OFF to ON but it also changes the background colour to green or something. It would make it so much easier to see key presses in that sea of keys.

I was thinking the same thing, bold and red for ON :slight_smile:

Hi
Thanks for trying it, I take it that means that it works as well (or as badly) from jws as it does from command line?, this was just a test of web starting jinput, rather than a test of jinput itself.

Cheers

Endolf

Yes… the Web Start aspect is working fine.

Hmm Jinput webstart blowing up on my mac :frowning:

OSX 10.3.2

Nah, that sounds about right. I haven’t touched it in months because I haven’t had a reason to. Its not #1 on my priority list. JOGL needs the most attention because its in horrible shape, performs poorly, have pixel format issues, and does some nasty things with renderings that I haven’t been able to track down. The JOGL rendering mechanism is rather obfuscated and makes it difficult to track down issues.

[quote]Hmm Jinput webstart blowing up on my mac :frowning:

OSX 10.3.2
[/quote]
Can’t confirm. It was running fine a few days ago when swpalmer sent me a link to a JInput demo. If its blowing up, a stack trace is necessary for me to do anything about it.

Maybe im using the wrong link. Can you point me at the one you used?

http://www.newdawnsoftware.com/jinput/jinput.jnlp