From 1b85b9bf6d9587aa234288f25ece2f9f7aff1c27 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Wed, 7 Mar 2018 00:16:55 -0600 Subject: [PATCH] Make sure to start imu data copying from proper offset --- DS4Windows/DS4Library/DS4Device.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DS4Windows/DS4Library/DS4Device.cs b/DS4Windows/DS4Library/DS4Device.cs index 35878d5..fe43735 100644 --- a/DS4Windows/DS4Library/DS4Device.cs +++ b/DS4Windows/DS4Library/DS4Device.cs @@ -960,7 +960,7 @@ namespace DS4Windows // Store Gyro and Accel values //Array.Copy(inputReport, 13, gyro, 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++) {