mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 06:05:46 +03:00
Steam controller input fixes
This commit is contained in:
parent
7e09c9d56f
commit
6719c6d0a4
@ -31697,11 +31697,16 @@ public static implicit operator InputAnalogActionData_t ( InputAnalogActionData
|
||||
[StructLayout( LayoutKind.Sequential, Pack = 8 )]
|
||||
internal struct InputMotionData_t
|
||||
{
|
||||
internal InputSourceMode EMode; // eMode EInputSourceMode
|
||||
internal float X; // x float
|
||||
internal float Y; // y float
|
||||
[MarshalAs(UnmanagedType.I1)]
|
||||
internal bool BActive; // bActive bool
|
||||
internal float RotQuatX; // rotQuatX float
|
||||
internal float RotQuatY; // rotQuatY float
|
||||
internal float RotQuatZ; // rotQuatZ float
|
||||
internal float RotQuatW; // rotQuatW float
|
||||
internal float PosAccelX; // posAccelX float
|
||||
internal float PosAccelY; // posAccelY float
|
||||
internal float PosAccelZ; // posAccelZ float
|
||||
internal float RotVelX; // rotVelX float
|
||||
internal float RotVelY; // rotVelY float
|
||||
internal float RotVelZ; // rotVelZ float
|
||||
|
||||
//
|
||||
// Read this struct from a pointer, usually from Native. It will automatically do the awesome stuff.
|
||||
@ -31724,11 +31729,16 @@ internal static int StructSize()
|
||||
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
|
||||
internal struct PackSmall
|
||||
{
|
||||
internal InputSourceMode EMode; // eMode EInputSourceMode
|
||||
internal float X; // x float
|
||||
internal float Y; // y float
|
||||
[MarshalAs(UnmanagedType.I1)]
|
||||
internal bool BActive; // bActive bool
|
||||
internal float RotQuatX; // rotQuatX float
|
||||
internal float RotQuatY; // rotQuatY float
|
||||
internal float RotQuatZ; // rotQuatZ float
|
||||
internal float RotQuatW; // rotQuatW float
|
||||
internal float PosAccelX; // posAccelX float
|
||||
internal float PosAccelY; // posAccelY float
|
||||
internal float PosAccelZ; // posAccelZ float
|
||||
internal float RotVelX; // rotVelX float
|
||||
internal float RotVelY; // rotVelY float
|
||||
internal float RotVelZ; // rotVelZ float
|
||||
|
||||
//
|
||||
// Easily convert from PackSmall to InputMotionData_t
|
||||
@ -31737,10 +31747,16 @@ public static implicit operator InputMotionData_t ( InputMotionData_t.PackSmall
|
||||
{
|
||||
return new InputMotionData_t()
|
||||
{
|
||||
EMode = d.EMode,
|
||||
X = d.X,
|
||||
Y = d.Y,
|
||||
BActive = d.BActive,
|
||||
RotQuatX = d.RotQuatX,
|
||||
RotQuatY = d.RotQuatY,
|
||||
RotQuatZ = d.RotQuatZ,
|
||||
RotQuatW = d.RotQuatW,
|
||||
PosAccelX = d.PosAccelX,
|
||||
PosAccelY = d.PosAccelY,
|
||||
PosAccelZ = d.PosAccelZ,
|
||||
RotVelX = d.RotVelX,
|
||||
RotVelY = d.RotVelY,
|
||||
RotVelZ = d.RotVelZ,
|
||||
};
|
||||
}
|
||||
}
|
||||
@ -31749,9 +31765,8 @@ public static implicit operator InputMotionData_t ( InputMotionData_t.PackSmall
|
||||
[StructLayout( LayoutKind.Sequential, Pack = 8 )]
|
||||
internal struct InputDigitalActionData_t
|
||||
{
|
||||
internal InputSourceMode EMode; // eMode EInputSourceMode
|
||||
internal float X; // x float
|
||||
internal float Y; // y float
|
||||
[MarshalAs(UnmanagedType.I1)]
|
||||
internal bool BState; // bState bool
|
||||
[MarshalAs(UnmanagedType.I1)]
|
||||
internal bool BActive; // bActive bool
|
||||
|
||||
@ -31776,9 +31791,8 @@ internal static int StructSize()
|
||||
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
|
||||
internal struct PackSmall
|
||||
{
|
||||
internal InputSourceMode EMode; // eMode EInputSourceMode
|
||||
internal float X; // x float
|
||||
internal float Y; // y float
|
||||
[MarshalAs(UnmanagedType.I1)]
|
||||
internal bool BState; // bState bool
|
||||
[MarshalAs(UnmanagedType.I1)]
|
||||
internal bool BActive; // bActive bool
|
||||
|
||||
@ -31789,9 +31803,7 @@ public static implicit operator InputDigitalActionData_t ( InputDigitalActionDa
|
||||
{
|
||||
return new InputDigitalActionData_t()
|
||||
{
|
||||
EMode = d.EMode,
|
||||
X = d.X,
|
||||
Y = d.Y,
|
||||
BState = d.BState,
|
||||
BActive = d.BActive,
|
||||
};
|
||||
}
|
||||
|
@ -44,21 +44,55 @@
|
||||
"fields":
|
||||
[
|
||||
{
|
||||
"fieldname": "eMode",
|
||||
"fieldtype": "EInputSourceMode"
|
||||
},
|
||||
{
|
||||
"fieldname": "x",
|
||||
"fieldname": "rotQuatX",
|
||||
"fieldtype": "float"
|
||||
},
|
||||
|
||||
{
|
||||
"fieldname": "y",
|
||||
"fieldname": "rotQuatY",
|
||||
"fieldtype": "float"
|
||||
},
|
||||
|
||||
{
|
||||
"fieldname": "bActive",
|
||||
"fieldtype": "bool"
|
||||
"fieldname": "rotQuatZ",
|
||||
"fieldtype": "float"
|
||||
},
|
||||
|
||||
{
|
||||
"fieldname": "rotQuatW",
|
||||
"fieldtype": "float"
|
||||
},
|
||||
|
||||
{
|
||||
"fieldname": "posAccelX",
|
||||
"fieldtype": "float"
|
||||
},
|
||||
|
||||
{
|
||||
"fieldname": "posAccelY",
|
||||
"fieldtype": "float"
|
||||
},
|
||||
|
||||
{
|
||||
"fieldname": "posAccelZ",
|
||||
"fieldtype": "float"
|
||||
},
|
||||
|
||||
{
|
||||
"fieldname": "rotVelX",
|
||||
"fieldtype": "float"
|
||||
},
|
||||
|
||||
{
|
||||
"fieldname": "rotVelY",
|
||||
"fieldtype": "float"
|
||||
},
|
||||
|
||||
{
|
||||
"fieldname": "rotVelZ",
|
||||
"fieldtype": "float"
|
||||
}
|
||||
|
||||
]
|
||||
},
|
||||
|
||||
@ -67,16 +101,8 @@
|
||||
"fields":
|
||||
[
|
||||
{
|
||||
"fieldname": "eMode",
|
||||
"fieldtype": "EInputSourceMode"
|
||||
},
|
||||
{
|
||||
"fieldname": "x",
|
||||
"fieldtype": "float"
|
||||
},
|
||||
{
|
||||
"fieldname": "y",
|
||||
"fieldtype": "float"
|
||||
"fieldname": "bState",
|
||||
"fieldtype": "bool"
|
||||
},
|
||||
{
|
||||
"fieldname": "bActive",
|
||||
|
Loading…
Reference in New Issue
Block a user