Unity-DirectInput icon indicating copy to clipboard operation
Unity-DirectInput copied to clipboard

Periodic Force Added - For Engine Vibration or Similar Effect

Open rathod-dhruv opened this issue 1 year ago • 0 comments

I was using it with a Thrustmaster Wheel while working on a VR Car Sim. I needed an engine vibration-like force feedback, so I added that feature. I've included comments before and after the sections I've edited. Most of my changes are in the DirectInputForceFeedback.h and DirectInputForceFeedback.cpp files.

Additionally, in the VirtualInputDevice.cs file, I commented out some code related to the D-pad because I was using OpenXR, which also registers the D-pad, causing errors. You can ignore this change if it's not relevant to you. I also made modifications to DIManger.cs and the demo script.

image

rathod-dhruv avatar Aug 14 '24 00:08 rathod-dhruv