Skip to content

Commit

Permalink
Fix error with a XBOX controller is connected.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mxater committed Dec 3, 2020
1 parent 4bdd12b commit b4783b6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
13 changes: 10 additions & 3 deletions DualSenseSupport/DeviceInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,16 @@ public void Send()
var outputReport = new byte[(int) Connection.WriteBufferSize];

outputReport[0] = 0x02; //REPORT TYPE
outputReport[1] = 0x4 | 0x8; //CONTROL FLAGS
outputReport[1] = 0xFF; //CONTROL FLAGS
outputReport[2] = 0x1 | 0x2 | 0x4 | 0x10 | 0x40; //Control flags
outputReport[1] = 0x4 | 0x8 ; //CONTROL FLAGS
// outputReport[1] = 0x4 | 0x8 | 0x10 | 0x20 | 0x40; //CONTROL FLAGS
// outputReport[1] = 0x00; //CONTROL FLAGS
outputReport[2] = 0x1 | 0x4 | 0x10 | 0x40; //Control flags
// outputReport[2] = 0x1 | 0x4 | 0x10 | 0x40; //Control flags


//AUDIO TESTING
// outputReport[5] = 0x00; // audio volume of connected headphones (maxes out at about 0x7f)

outputReport[39] = (byte) _dsLight.LedOption; //LED CONTROL

outputReport[44] = (byte) _dsLight.PlayerNumber;
Expand Down
2 changes: 1 addition & 1 deletion DualSenseSupport/Devices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static void Init()
WindowsUsbDeviceFactory.Register(_logger, _tracer);

SearchDS5Controller();
SearchXboxController();
// SearchXboxController();
}

public static int GetDeviceCount()
Expand Down
12 changes: 12 additions & 0 deletions Testing/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b4783b6

Please sign in to comment.