Nightly builds

Hi

I’ve managed to get hudson up and running and building JInput for windows 32 and 64 bit, linux 32 and 64 bit and osx ppc, x86 and x86_64, at the moment it’s dumping out nightly builds to here with the name jinput_nightly_.zip. It’s also updating the webstart demo and applet test.

Any volunteers to help test them? :), if you do, can you let me know what OS your using, 32 or 64 bit (or PPC), and what controllers you tested.

Thanks

Endolf

Seems to work fine here basically, though I’m not using any controllers.
Windows 7, 64bit.

It picks up my HP Quick Launch buttons but it only shows them all off and no changes when I press the buttons.
Not sure if this is a bug:
Caps lock/scroll lock picks up being pressed but then show off when there still on.

Wow, that’s a cool demo, makes me want to use JInput!

It picked up my laptop’s touchpad mouse and external mouse and the keyboard, windows vista. It made a blank window which said ‘controller test’. Note sure if that’s what it’s supposed to be.

EDIT: I plugged in another external mouse and it recognised all 3 mice separately!!! that’s pretty amazing

Cool, first reported test with windows 7 :), were you using a 64bit browser and 64bit JRE?

Hmm, no idea whats going on there, I’ve seen similar things under linux, but not windows before. I’m guessing it’s extended button codes or something, I really ought to write some extra debugging utilities … at some point ;).

Nope, it’s the caps/scroll lock key, rather than the function that it’s measuring, so unless you hold the key down, it should return to the unpressed state, even if the caps/scroll lock is still on.

Thanks for testing it

Endolf

Yup. That window is there partly incase no controllers are discovered, lets you know it’s running.

Thats the raw input plugin at work (if you using windows). The downside is that if the application loses focus the mice/keyboards stop updating. There is an alternative plugin that will get events when the application loses focus, but it will only detect a combined keyboard/mouse.

What OS, JVM and jvm architecture were you using?

Thanks

Endolf

Ok I just tried internet explorer 64bit with the 64bit Java, the “Controller Read Test” pops up but no other window does.

[quote]Loading: net.java.games.input.DirectAndRawInputEnvironmentPlugin
java.lang.UnsatisfiedLinkError: Can’t load library: C:\Users\Daniel\AppData\Local\Temp\www.newdawnsoftware.com\jinput\natives\jinput-dx8-64.dll
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at net.java.games.input.DirectInputEnvironmentPlugin$1.run(DirectInputEnvironmentPlugin.java:73)
at java.security.AccessController.doPrivileged(Native Method)
at net.java.games.input.DirectInputEnvironmentPlugin.loadLibrary(DirectInputEnvironmentPlugin.java:67)
at net.java.games.input.DirectInputEnvironmentPlugin.(DirectInputEnvironmentPlugin.java:109)
at net.java.games.input.DirectAndRawInputEnvironmentPlugin.(DirectAndRawInputEnvironmentPlugin.java:45)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:157)
at net.java.games.input.test.ControllerReadTest.(ControllerReadTest.java:252)
at net.java.games.input.applet.test.ControllerReadTestApplet.init(ControllerReadTestApplet.java:43)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.UnsatisfiedLinkError: Can’t load library: C:\Users\Daniel\AppData\Local\Temp\www.newdawnsoftware.com\jinput\natives\jinput-raw-64.dll
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at net.java.games.input.RawInputEnvironmentPlugin$1.run(RawInputEnvironmentPlugin.java:73)
at java.security.AccessController.doPrivileged(Native Method)
at net.java.games.input.RawInputEnvironmentPlugin.loadLibrary(RawInputEnvironmentPlugin.java:67)
at net.java.games.input.RawInputEnvironmentPlugin.(RawInputEnvironmentPlugin.java:109)
at net.java.games.input.DirectAndRawInputEnvironmentPlugin.(DirectAndRawInputEnvironmentPlugin.java:46)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:157)
at net.java.games.input.test.ControllerReadTest.(ControllerReadTest.java:252)
at net.java.games.input.applet.test.ControllerReadTestApplet.init(ControllerReadTestApplet.java:43)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
net.java.games.input.DirectAndRawInputEnvironmentPlugin is not supported
[/quote]

Cool, thanks for the report, I’ll take a look later when I’m home. Does the webstart version work on the 64bit javaws?

Cheers

Endolf

D’oh!

I’ve very carefully named the libs in the build output to _64.dll for windows 64 bit, and then in the plugin I try to load -64.

I’ll fix that later and would be gratefull if you’d give it another try on 64 bit JVM. I’ll post back when it’s done (shouldn’t take long, should be home in 4.5 hours, hopefully new build up in 5 :))

Cheers

Endolf

I think I found a problem… when you hold a key then click outside the window then release the key the key is still registered as down

Thats the OS, nowt we can do about it in JInput. The demo application is designed to show JInput features. In your own application you could register an window listener on the awt windows and force keys to change value if you wish, but the calls down to the OS for raw input don’t let us know whats going on.

HTH

Endolf

Works fine now for the 64bit version. Nice one.

Sweet :slight_smile:

applet and webstart?

Thanks for testing this, it’s my first 64 bit build and test :slight_smile:

Cheers

Endolf

and for those that care, the build logs are here

Endolf

64-bit Linux version seems to work fine with Sun JDK amd64 running in Ubuntu 8.10.