Rumble Problems

Just moved our code(Xj3D) to the latest Jinput. In general went well.

Were having an issue with Rumble though. This controller used to work in the previous version, doesn’t now.

When I run rumble test I get this:

Buildfile: build.xml

rumbletest:

runtest:
[java] Scanning Mouse
[java] Found 0 rumblers
[java] Scanning Keyboard
[java] Found 0 rumblers
[java] Scanning Logitech WingMan RumblePad USB
[java] Found 5 rumblers
[java] Rumbler null on axis null
[java] Rumbling with intensity: 0.5
[java] Failed to set rumbler gain: Failed to set effect gain (0x80040205)
[java] Rumbling with intensity: 1.0
[java] Failed to set rumbler gain: Failed to set effect gain (0x80040205)
[java] Fading rumble to -1
[java] Failed to set rumbler gain: Failed to set effect gain (0x80040205)
[java] Failed to set rumbler gain: Failed to set effect gain (0x80040205)
[java] Failed to set rumbler gain: Failed to set effect gain (0x80040205)

Its a Logitech Wingman RumblePad. ControllerReadTest runs fine. Changing between modes on the controller has no affect.

Windows XP, Service Pack 1
Java 1.5.0_06

Hi

i’ll take a look tonight if I get time, thats about 12 hours from now :).

Endolf

Right

That messages is saying that it can’t set the gain on the effect because some other app has a lock on the device, so we don’t have exclusive access. What else do you have running?

I know it doesn’t help, but for me, with (it looks) the same device, it works fine.

Endolf

ok. Seems the fact that I was specifying the plugin explictly caused the plugin to load twice and hence lock itself out of the rumble. Thank you for the debug support.

I used to get names for the rumbers. Now when I call .getAxisName I just get a null. I’ve tested this on a Logitech Wingman Rumblepad and a Logitech Nascar Racing Wheel. I can rumble the axis but don’t a useful name. Calling getIdentifier also returns null.

On the subject of axis names. I get very different names for an axis on Windows verses a Mac. Should I expect similar names?

Hi

Can’t say I’ve studied the rumbler names in version 2, I’ll take a look at some point. As for the axis names, how different is different?. The identifiers (different to names) should be the same accross platforms (although it’s up to the driver to identify the axis type, we just map it), the names are free form. I don’t have access to a mac so I’d be interested to see what falls out :slight_smile:

Endolf

Hi…

I’m using Playstation2 analog-controller (SCPH-10010) as my game-controller. from the output of ControllerReadText test-program I can tell that all the button and analog sticks are working. But I can’t get it rumbles with the RumbleTest test-program.

I need the rumble function for my implementation, should I change the game-controller or is there anything I can do to make it works?

Thank you…

What OS are you on?

Which version of JInput are you using?, whats the file name it came from for binaries, or when did you do the CVS checkout if you did a source build?.

Thanks

Endolf

Hi…

OS is Linux (Fedora Core 6).

I dont know what version my jinput is (please tell me how to check the jinput version). but I download it from “document & files” section on https://jinput.dev.java.net/. The file name is <jinput_combined_dist_20061029.zip>, inside “combined” folder.

thanks

Thats the version information I needed :slight_smile:

On linux, you need write permissions to the /dev/input/event* device nodes if you want rumblers enabled. Check you have this. If they are read only, then jinput can’t write the force effect information to the device, and it’s useless as a FF device. We just treat it as a read only device if we can’t open it read/write, and thus no rumblers get reported.

HTH

Endolf