Skip to content

Unity DirectInput ForceFeedback

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta
Notifications You must be signed in to change notification settings

MrTimcakes/Unity-DirectInputFFB

 
 

Repository files navigation

This repository has been superseded, find the new repository here

 

View Legacy README

Unity DirectInput Force Feedback

Made with Unity GitHub issues

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.

Quick Start

Installation

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

Supported ForceFeedback Effects

Effect Supported
ConstantForce
CustomForce 🔲
Damper
Friction 🔲
Inertia 🔲
RampForce 🔲
SawtoothDown 🔲
SawtoothUp 🔲
Sine 🔲
Spring
Square 🔲
Triangle 🔲

Compatible Devices

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

Current limitations

  1. Architected in a way to only support 1 controller.
  2. Currently only supports 1 Effect of each type.

Environment

This plugin only works on Windows 64 bit.

Unity Version: 2021.1.7f1

Support

If you're having any problem, please raise an issue on GitHub.

License

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.

About

Unity DirectInput ForceFeedback

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 68.1%
  • C++ 27.9%
  • C 4.0%