This repository has been superseded, find the new repository here
View Legacy README
This package allows you to easily integrate both the input and ForceFeedback features of DirectX from within Unity. This allows you to interface with HID peripherals with ForceFeedback capabilities. This can be used to build vivid simulated experiences.
The package will create a virtual device inside Unity's Input System. This device can then be used like any other device inside the Input System, allowing for easiy rebinding.
This package requires use of Unity's new Input System, ensure com.unity.inputsystem is installed in the project. Install it via the package manager via:
Window -> Package Manager => Input System
Next, install this package:
Package Manager => + => "Add package from git URL..." =>
https://github.com/MrTimcakes/Unity-DirectInputFFB.git
Effect | Supported |
---|---|
ConstantForce | ✅ |
CustomForce | 🔲 |
Damper | ✅ |
Friction | 🔲 |
Inertia | 🔲 |
RampForce | 🔲 |
SawtoothDown | 🔲 |
SawtoothUp | 🔲 |
Sine | 🔲 |
Spring | ✅ |
Square | 🔲 |
Triangle | 🔲 |
Peripheral | Test Status |
---|---|
Fanatec CSL Elite | ✅ Verified |
Fanatec WRC Wheel Rim | ✅ Verified |
Fanatec Formula V2 Wheel Rim | ✅ Verified |
Fanatec CSL LC Pedals | ✅ Verified |
Fanatec ClubSport Shifter SQ V 1.5 | ✅ Verified |
Logitech G29 / G920 | 🔲 Untested |
- Architected in a way to only support 1 controller.
- Currently only supports 1 Effect of each type.
This plugin only works on Windows 64 bit.
Unity Version: 2021.1.7f1
If you're having any problem, please raise an issue on GitHub.
This repo is a Fork of Unity-FFB and thus is released under the MIT License, further information can be found under the terms specified in the license.