Skip to content

Commit

Permalink
Added reportOffset for extra byte
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryochan7 committed Aug 9, 2021
1 parent 13a343d commit a4c658e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DS4Windows/DS4Library/InputDevices/DualSenseDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ private unsafe void ReadInput()
cState.R2 = inputReport[6 + reportOffset];

// DS4 Frame Counter range is [0-127]. DS version range is [0-255]. Convert
cState.FrameCounter = (byte)(inputReport[7] % 128);
cState.FrameCounter = (byte)(inputReport[7 + reportOffset] % 128);
tempByte = inputReport[8 + reportOffset];
cState.Triangle = (tempByte & (1 << 7)) != 0;
cState.Circle = (tempByte & (1 << 6)) != 0;
Expand Down

0 comments on commit a4c658e

Please sign in to comment.