From e6ac109616dbd02c9849e44e8eeb70ed8b507376 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sun, 22 Jul 2018 01:22:42 -0500 Subject: [PATCH] Revert "Removed extra fixed block. Moved method call" This reverts commit f906178b5b364be2a802859078f0c3a50cf49f0a. --- DS4Windows/DS4Library/DS4Device.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {