Skip to content

Commit

Permalink
List all devices without filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Helander committed Dec 9, 2020
1 parent 0c7860b commit cb960b1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ForceFeedbackSharpDx/MicrosoftSidewinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ public bool ForceFeedback2(string productGuid, string productName, bool AutoCent

var directInputDevices = new List<DeviceInstance>();

directInputDevices.AddRange(directInput.GetDevices(DeviceType.Joystick, DeviceEnumerationFlags.AllDevices));
directInputDevices.AddRange(directInput.GetDevices(DeviceType.Gamepad, DeviceEnumerationFlags.AllDevices));
directInputDevices.AddRange(directInput.GetDevices(DeviceType.Driving, DeviceEnumerationFlags.AllDevices));
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));

foreach (var deviceInstance in directInputDevices)
{
Expand Down

0 comments on commit cb960b1

Please sign in to comment.