mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-06 03:39:23 +00:00
Update to Ultraleap Gemini v5.12
Update to Ultraleap Unity Plugin v6.9.0 Unclamped spreads and curls
This commit is contained in:
parent
965c0bf93d
commit
5c33abc9d2
46 changed files with 1143 additions and 2564 deletions
38
ml_lme/vendor/LeapCSharp/LeapC.cs
vendored
38
ml_lme/vendor/LeapCSharp/LeapC.cs
vendored
|
@ -1,5 +1,5 @@
|
|||
/******************************************************************************
|
||||
* Copyright (C) Ultraleap, Inc. 2011-2021. *
|
||||
* Copyright (C) Ultraleap, Inc. 2011-2023. *
|
||||
* *
|
||||
* Use subject to the terms of the Apache License 2.0 available at *
|
||||
* http://www.apache.org/licenses/LICENSE-2.0, or another agreement *
|
||||
|
@ -20,7 +20,6 @@ namespace LeapInternal
|
|||
eLeapConnectionFlag_MultipleDevicesAware = 0x00000001,
|
||||
};
|
||||
|
||||
//
|
||||
public enum eLeapConnectionStatus : uint
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -74,7 +73,11 @@ namespace LeapInternal
|
|||
/// <summary>
|
||||
/// The Ultraleap 3Di hand tracking camera.
|
||||
/// </summary>
|
||||
eLeapDevicePID_3Di = 0x1204
|
||||
eLeapDevicePID_3Di = 0x1204,
|
||||
/// <summary>
|
||||
/// The Ultraleap Leap Motion Controller 2 hand tracking camera.
|
||||
/// </summary>
|
||||
eLeapDevicePID_LMC2 = 0x1206
|
||||
};
|
||||
|
||||
public enum eLeapServiceDisposition : uint
|
||||
|
@ -799,23 +802,11 @@ namespace LeapInternal
|
|||
public float y;
|
||||
public float z;
|
||||
|
||||
[System.Obsolete("This code will be removed in the next major version of the plugin. Use 'ToVector3()' instead.")]
|
||||
public Leap.Vector ToLeapVector()
|
||||
{
|
||||
return new Leap.Vector(x, y, z);
|
||||
}
|
||||
public UnityEngine.Vector3 ToVector3()
|
||||
{
|
||||
return new UnityEngine.Vector3(x, y, z);
|
||||
}
|
||||
|
||||
[System.Obsolete("This signature will be removed in the next major version of the plugin. Use the one taking a Vector3 instead.")]
|
||||
public LEAP_VECTOR(Leap.Vector leap)
|
||||
{
|
||||
x = leap.x;
|
||||
y = leap.y;
|
||||
z = leap.z;
|
||||
}
|
||||
public LEAP_VECTOR(UnityEngine.Vector3 vector)
|
||||
{
|
||||
x = vector.x;
|
||||
|
@ -832,24 +823,11 @@ namespace LeapInternal
|
|||
public float z;
|
||||
public float w;
|
||||
|
||||
[System.Obsolete("This code will be removed in the next major version of the plugin. Use 'ToQuaternion()' instead.")]
|
||||
public Leap.LeapQuaternion ToLeapQuaternion()
|
||||
{
|
||||
return new Leap.LeapQuaternion(x, y, z, w);
|
||||
}
|
||||
public UnityEngine.Quaternion ToQuaternion()
|
||||
{
|
||||
return new UnityEngine.Quaternion(x, y, z, w);
|
||||
}
|
||||
|
||||
[System.Obsolete("This signature will be removed in the next major version of the plugin. Use the one taking a UnityEngine.Quaternion instead.")]
|
||||
public LEAP_QUATERNION(Leap.LeapQuaternion q)
|
||||
{
|
||||
x = q.x;
|
||||
y = q.y;
|
||||
z = q.z;
|
||||
w = q.w;
|
||||
}
|
||||
public LEAP_QUATERNION(UnityEngine.Quaternion q)
|
||||
{
|
||||
x = q.x;
|
||||
|
@ -1075,7 +1053,7 @@ namespace LeapInternal
|
|||
public static extern eLeapRS GetDeviceInfo(IntPtr hDevice, ref LEAP_DEVICE_INFO info);
|
||||
|
||||
[DllImport("LeapC", EntryPoint = "LeapGetDeviceTransform")]
|
||||
public static extern eLeapRS GetDeviceTransform(IntPtr hDevice, out float[] transform);
|
||||
public static extern eLeapRS GetDeviceTransform(IntPtr hDevice, [MarshalAs(UnmanagedType.LPArray, SizeConst = 16)] float[] transform);
|
||||
|
||||
[DllImport("LeapC", EntryPoint = "LeapSetPolicyFlags")]
|
||||
public static extern eLeapRS SetPolicyFlags(IntPtr hConnection, UInt64 set, UInt64 clear);
|
||||
|
@ -1130,7 +1108,7 @@ namespace LeapInternal
|
|||
|
||||
[DllImport("LeapC", EntryPoint = "LeapRectilinearToPixelEx")]
|
||||
public static extern LEAP_VECTOR LeapRectilinearToPixelEx(IntPtr hConnection,
|
||||
IntPtr hDevice, eLeapPerspectiveType camera, eLeapCameraCalibrationType calibrationType, LEAP_VECTOR rectilinear);
|
||||
IntPtr hDevice, eLeapPerspectiveType camera, LEAP_VECTOR rectilinear);
|
||||
|
||||
[DllImport("LeapC", EntryPoint = "LeapCloseDevice")]
|
||||
public static extern void CloseDevice(IntPtr pDevice);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue