Download Native Unity FFB for Wheelbase and DirectInput device
It does not need any software, it is not vendor-specific and works natively in conjunction with Unity's Input System. I have included demo scenes and a sample Unity Windows build as well.
Modern Windows SDK-based general FFB plugin for your Unity driving sim
Download Link: https://github.com/imDanoush/Unity-DirectInput/
This is a DirectInput-based force feedback implementation that offers several advantages:
- Device Compatibility
- Works with any DirectInput-compatible device
- Multiple FFB-Devices can be detected
- No vendor lock-in, supports multiple manufacturers (Fanatec, Thrustmaster, etc.) - not just Logitech wheels and that is without G-Hub or additional apps
- Force Feedback Features
- Supports all standard DirectInput force effects:
- Constant Force
- Spring, Damper, Friction, Inertia
- Periodic Effects (Sine, Square, Triangle, Sawtooth) with configurable sample periods
- Ramp Effects with configurable ranges
- Custom Force Effects (but this is not fully implemented!)
- Fine-grained control over effect parameters
- Real-time effect modification
- Integration Benefits
- Clean C# implementation for Unity
- Device hot-plugging support
- No external DLL dependencies beyond DirectInput
- Open source and customizable
- Windows 8+ 64bit
**Note: For Windows 8+ you may need to install DirectX beforehand, but for Windows 10 update 22H2+ it should work out-of-the-box.
**
- Developer Experience
- Simple API for common force feedback effects
- Detailed debugging and error reporting
- Event-based device state changes
- Sample code and demo implementation included
- IL2CPP builds are supported
- Other device types support
- Can read and manage DInput devices
- Has a standalone and open-source FFB Explorer app
This asset was made and written by Mr.Tim Cackes, and many people contributed to this project. The main branch is waiting for a merge, had to work on my own fork.