#Native Force Feedback

1 messages · Page 1 of 1 (latest)

wheat totem
#

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:

  1. 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
  1. 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
  1. 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.
    **
  1. 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
  1. 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.

GitHub

Unity Native Plugin to expose DirectX DirectInput ForceFeedback - imDanoush/Unity-DirectInput