Make sure to start imu data copying from proper offset

This commit is contained in:
Travis Nickles 2018-03-07 00:16:55 -06:00
parent c56f1a7235
commit 1b85b9bf6d

View File

@ -960,7 +960,7 @@ namespace DS4Windows
// Store Gyro and Accel values // Store Gyro and Accel values
//Array.Copy(inputReport, 13, gyro, 0, 6); //Array.Copy(inputReport, 13, gyro, 0, 6);
//Array.Copy(inputReport, 19, accel, 0, 6); //Array.Copy(inputReport, 19, accel, 0, 6);
fixed (byte* pbInput = inputReport, pbGyro = gyro, pbAccel = accel) fixed (byte* pbInput = &inputReport[13], pbGyro = gyro, pbAccel = accel)
{ {
for (int i = 0; i < 6; i++) for (int i = 0; i < 6; i++)
{ {