nice test application

EDIT:
This is an old thread. It was bumped because I have re-released the application which is mentioned here. If you search for details: read on. If you want the app itself, look here: http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jinput;action=display;num=1087611855

Note: The license information here is obsolete. The app is now Free software licensed under the terms of the GPL.

Original posting:
This is my small contribution to the java gaming initiative. I hope this will help a lot of people …

… understanding how to write an application with JInput.
… seeing how a particurlar input device behaves.
… finding bugs/inconsistencies in JInput.

The java source inside the jar is free of any royalties. Everyone is allowed to do whatever he/she wants. The gui was created with netbeans so I included the form-files as well.

The jar expects a working installation of JInput and its plugins.

Everything can be found here:
page.inf.fu-berlin.de/~rschuste/java/jinputtester.jar

It would be nice to get some response from you.

Well my response is"Thanks!"

I’ll try to take a look at it and make mroe comments sometiem this week amid everything else I have on the plate…

JK

Since my post was getting older and older with no reply I already thought nobody noticed it … :smiley:

To make the app more attractive I will add JNLP support to it. Therefore I need some information of how to install the native plugins automatically.
Can anyone help?

can i just make a small suggestion?

i tried making a small change by setting the timer to 50 ms intervals instead of 250.

it makes the program feel a lot more responsive, and updates a lot more frequently. (and still only uses 0-3% of the 1ghz cpu)

  • JuddMan’s suggestion is included: update interval changed to 50 ms
  • JARs on my universities webserver are now self-signed
  • when Jinput cannot be located a useful suggestion is displayed instead of showing the exception

There is a JNLP now but it doesn’t work so far. It assumes to have the platform dependant plugins installed in ${jdk.home}/lib/controller. My explanation to the exception that you will encounter is that webstart doesn’t allow loading of native libraries (although I request 'all-permission’s in the JNLP file)
When the problem is solved I will post an update.

http://page.inf.fu-berlin.de/~rschuste/java/jinputtesterFU.jnlp

Another problem you might encounter is that the webserver does not handle the MIME type for JNLP files correctly. You have to put the above link into the address line of webstart (or other JNLP client).

This update is for people who always want to know more :slight_smile:

The current version checks for availability of BeanShell in the classpath and if it is successful an console can be activated. The Interpreter contains an array named ‘controllers’ that contains all the devices that your system returns for ControllerEnvironment.getControllers().
To make things more convenient accessibility has been turned on (allows manipulation of non-public members) and the (main) packages of jutils and jinput have been imported.

And now something to the way JInputTester expects to find BeanShell:

  1. If you have installed any version of BeanShell as an extension then it can be used without further doings.

  2. Download some newer version from beanshell.org, rename it to bsh.jar and copy it to the directory where jinputtester.jar is located.

For all who don’t know what BeanShell is. Simply try my application and type some valid (!) Java statements in the console (eg: frame = new Frame(“bla”); frame.show(); ) Soon you’ll begin to love it … :smiley:

  • EDIT:

fixed smiley :smiley:

The application can now be used with webstart because I have modified the jinput.jar a bit to get it working. As the included version of the library is not official I recommend to not spread this version too much. As soon as some official solution for the problem stated here http://www.JavaGaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jinput;action=display;num=1064272481 is available I will switch over to that.

Since I couldn’t find a binary for macos [X] support for this platform is broken :frowning:

Currently Linux and Windows versions should work fine.
Linux users: If some strange happens when trying the app please report these here. At the moment this OS is missing on my system. :slight_smile:

[quote]Since I couldn’t find a binary for macos [X] support for this platform is broken :frowning:
[/quote]
It’s in the shared files area of the JInput project.

MacOS X is now supported but I cannot guarantee that it works. If someone uses macos x: please tell me what is the value of System.getProperty(“os.name”)?

os.name=Mac OS X

I have re-released the app. Links are now available in the sticky introduction thread: http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jinput;action=display;num=1087611855