Controller doesnt work

i tried to run the lwjgl (0.5 and 0.6) ControllerTest (org.lwjgl.test.input.ControllerTest) but it failed :confused:


java -cp .;lwjgl_test.jar;lwjgl.jar org.lwjgl.test.input.ControllerTest
java.langException: The controller could not be created.
  at org.lwjgl.input.Controller.create(Unknown Source)
  at org.lwjgl.test.input.ControllerTest.<init>(Unknown Source)
  at org.lwjgl.test.input.ControllerTest.main(Unknown Source)
Exception in thread "main" java.lang.NullPointerException
  at org.lwjgl.test.input.ControllerTest.main(Unknown Source)

os: win98se
gamepads:
(#1) saitek p880 dual analog (usb)
(#2) saitek x6-33m (gameport)
DirectX: 9.0 (dont know if u use dinput for that)

in the first run #2 wasnt attached and the error msg was the same as in the second run were both controllers was attached.

confirming, I actually haven’t used controllers for a while - so I just hooked up a gamepad. Create is failing on me too - will investigate tonight.

Hmm, thats odd, i’ve had a gamepad working with v0.5 for a while now with no problems. I’ll be upgrading to v0.6 some time soon so i’ll let you know how it goes.

thx Matzon :-*

fixed, in cvs. We’ll probably do a 0.6.1 this weekend, fixing keyboard bug and controller bug.
If ya got any other errors, now is the time to report it!

The bug was caused in the native lib, by including a header that downgraded Controller to Direct X 3, which doesn’t support Joystick, thus no devices could be enumerated.