bobhelander / EDForceFeedback

Elite Dangerous Force Feedback
MIT License
33 stars 11 forks source link

Teensy 2.0 Adapter Sidewinder Fix #7

Closed pladombrowski closed 3 years ago

pladombrowski commented 3 years ago

Hello, first of all I want to thank you for the great job! I have a Sidewinder ForceFeedBack Pro running with a Teensy 2.0 db15-usb adapter using https://github.com/tloimu/adapt-ffb-joy and your code perfectly. I had to only to make a little tweak to get all devices on MicrosoftSidewinder.cs as follow:

directInputDevices.AddRange(directInput.GetDevices()); //directInputDevices.AddRange(directInput.GetDevices(DeviceType.Joystick, DeviceEnumerationFlags.AllDevices)); //directInputDevices.AddRange(directInput.GetDevices(DeviceType.Gamepad, DeviceEnumerationFlags.AllDevices)); //directInputDevices.AddRange(directInput.GetDevices(DeviceType.Driving, DeviceEnumerationFlags.AllDevices));

Because my joystick wasn't recognized by the DeviceType enum.

bobhelander commented 3 years ago

I like the change. The enumeration of the devices always seems to miss something.

Thank you for the help!

Bob

S1L1C0N1 commented 3 years ago

Hi, Is it possible you make your fix available to other users? I also recently completed the teensy adapter for the FFB Pro.