diff --git a/DS4Windows/DS4Library/DS4Device.cs b/DS4Windows/DS4Library/DS4Device.cs index 368de7c..023df85 100644 --- a/DS4Windows/DS4Library/DS4Device.cs +++ b/DS4Windows/DS4Library/DS4Device.cs @@ -981,10 +981,10 @@ namespace DS4Windows { pbAccel[i-6] = pbInput[i]; } - - sixAxis.handleSixaxis(pbGyro, pbAccel, cState, elapsedDeltaTime); } + fixed (byte* pGyro = gyro, pAccel = accel) sixAxis.handleSixaxis(pGyro, pAccel, cState, elapsedDeltaTime); + /* Debug output of incoming HID data: if (cState.L2 == 0xff && cState.R2 == 0xff) {