Force feedback plugin

Hey, I posted this over at showcase (because it works), but I can’t figure out one crash bug, which takes down the unity editor.
Anyone who knows c++ I’d much appreciate having a look. It’s probably something simple (hopefully :wink: )

http://forum.unity3d.com/threads/78268-Force-feedback-for-Windows

it doesn’t use callbacks and alike, does it? if it does, the callback must not end on a class that extends from UnityEngine.Object directly or indirectly … (haven’t looked at it but that out of my experience is the fastest way to crash the editor and be near incapable to ever debug it)

I’ve isolated the problem to this line (277) in the DirectInput c++

The line that actually sets the force amount.

It seems to still do the same thing even if I give it

and comment out the entire rest of the function which sets the ‘eff’ variable.

Also the autocenter get set to off regardless of whether I actually call it. Then the next time the editor runs, it’s autocentering

Mine crashes every time I click play. I cant seem to get anything out of it.

hmm, what version of unity and directx do you have? Does it work with a build and not in the editor?

It works great on my system but my joystick has vibration as well. Do you have any idea how I can activate the vibration?
Thanks

Hi Everyone,

I am newbiee so any kind of help is appreciated. Thanks in advance.

I am using this UnityForceFeedback.zip, but facing the same issue that it crashes in Unity when I try to use it for the very next time.
Did some one find/resolved this issue?
or do we have some kind of alternative ?

Thanks,
Murtaza