Double Reporting

In the latest build(combined_20061029) I’m seeing double reporting of devices. Running the texttest I get this output(I removed the keyboard entries). This happens for all devices.

Buildfile: build.xml

texttest:

runtest:
[java] Controller Env = net.java.games.input.DefaultControllerEnvironment@1a16869
[java] Mouse
[java] Type: Mouse
[java] Component Count: 6
[java] Component 0: X-axis
[java] Identifier: x
[java] ComponentType: Relative Analog
[java] Component 1: Y-axis
[java] Identifier: y
[java] ComponentType: Relative Analog
[java] Component 2: Wheel
[java] Identifier: z
[java] ComponentType: Relative Analog
[java] Component 3: Button 0
[java] Identifier: Left
[java] ComponentType: Absolute Digital
[java] Component 4: Button 1
[java] Identifier: Right
[java] ComponentType: Absolute Digital
[java] Component 5: Button 2
[java] Identifier: Middle
[java] ComponentType: Absolute Digital
[java] ---------------------------------
[java] Mouse
[java] Type: Mouse
[java] Component Count: 6
[java] Component 0: X-axis
[java] Identifier: x
[java] ComponentType: Relative Analog
[java] Component 1: Y-axis
[java] Identifier: y
[java] ComponentType: Relative Analog
[java] Component 2: Wheel
[java] Identifier: z
[java] ComponentType: Relative Analog
[java] Component 3: Button 0
[java] Identifier: Left
[java] ComponentType: Absolute Digital
[java] Component 4: Button 1
[java] Identifier: Right
[java] ComponentType: Absolute Digital
[java] Component 5: Button 2
[java] Identifier: Middle
[java] ComponentType: Absolute Digital
[java] ---------------------------------

BUILD SUCCESSFUL
Total time: 0 seconds

Hi

There is no ant file shipped with the dists, so I don’t know what that ant script is, or what properties etc it runs. Also, what platform are you on, what OS, and what hardware do you have attached?

Thanks

Endolf

I’m using the ant file from the CVS build but running across the precompiled release.

build.xml

rumbletest

Windows XP, SP 1
Logitech Wingman Rumblepad

But the mouse and keyboard are also double reporting.

Hi

When you extract the dist jar, you get a directory called dist with jars and native libs in, from that directory can you try running the folowing command

java -cp jinput.jar;jinput-test.jar -Djava.library.path=. net.java.games.input.test.ControllerTextTest

Thanks

Endolf

thank you that helped diagnose the issue.

Seems we don’t need to specify:
System.setProperty(“jinput.plugins”, “net.java.games.input.DirectInputEnvironmentPlugin”);

anymore. When I do that the plugin initializes twice. Is jinput now picking the correct plugin itself?

Hi

You should only need that property if you want additional plugins. It has always loaded an appropriate plugin for the platform it is running on. There used to be code in there to stop duplicate loading of plugins, I guess I need to investigate where that went too :).

Endolf