mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-23 09:49:16 +01:00
Make sure to start imu data copying from proper offset
This commit is contained in:
parent
c56f1a7235
commit
1b85b9bf6d
@ -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++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user