mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-02-20 01:42:41 +01:00
Expose full accel values for future experiments
This commit is contained in:
parent
2e74fd67c1
commit
5f907de036
@ -16,7 +16,8 @@ namespace DS4Windows
|
|||||||
public class SixAxis
|
public class SixAxis
|
||||||
{
|
{
|
||||||
public readonly int gyroX, gyroY, gyroZ, deltaX, deltaY, deltaZ, accelX, accelY, accelZ;
|
public readonly int gyroX, gyroY, gyroZ, deltaX, deltaY, deltaZ, accelX, accelY, accelZ;
|
||||||
public readonly int gyroXFull, gyroYFull;
|
public readonly int gyroXFull, gyroYFull, gyroZFull;
|
||||||
|
public readonly int accelXFull, accelYFull, accelZFull;
|
||||||
public readonly byte touchID;
|
public readonly byte touchID;
|
||||||
public readonly SixAxis previousAxis;
|
public readonly SixAxis previousAxis;
|
||||||
public SixAxis(int X, int Y, int Z, int aX, int aY, int aZ, SixAxis prevAxis = null)
|
public SixAxis(int X, int Y, int Z, int aX, int aY, int aZ, SixAxis prevAxis = null)
|
||||||
@ -26,9 +27,15 @@ namespace DS4Windows
|
|||||||
gyroZ = Z / 256;
|
gyroZ = Z / 256;
|
||||||
gyroXFull = X;
|
gyroXFull = X;
|
||||||
gyroYFull = Y;
|
gyroYFull = Y;
|
||||||
|
gyroZFull = Z;
|
||||||
|
|
||||||
accelX = aX / 64;
|
accelX = aX / 64;
|
||||||
accelY = aY / 64;
|
accelY = aY / 64;
|
||||||
accelZ = aZ / 64;
|
accelZ = aZ / 64;
|
||||||
|
accelXFull = aX;
|
||||||
|
accelYFull = aY;
|
||||||
|
accelZFull = aZ;
|
||||||
|
|
||||||
previousAxis = prevAxis;
|
previousAxis = prevAxis;
|
||||||
if (previousAxis != null)
|
if (previousAxis != null)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user