mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-06 03:39:23 +00:00
Update to LeapCSharp 5.9.0
This commit is contained in:
parent
987aa798ba
commit
d748e10241
11 changed files with 343 additions and 54 deletions
24
ml_lme_cvr/vendor/LeapCSharp/Device.cs
vendored
24
ml_lme_cvr/vendor/LeapCSharp/Device.cs
vendored
|
@ -49,7 +49,8 @@ namespace Leap
|
|||
DeviceType type,
|
||||
bool isStreaming,
|
||||
uint status,
|
||||
string serialNumber)
|
||||
string serialNumber,
|
||||
uint deviceID)
|
||||
{
|
||||
Handle = deviceHandle;
|
||||
InternalHandle = internalHandle;
|
||||
|
@ -60,9 +61,24 @@ namespace Leap
|
|||
Type = type;
|
||||
IsStreaming = isStreaming;
|
||||
SerialNumber = serialNumber;
|
||||
DeviceID = deviceID;
|
||||
UpdateStatus((eLeapDeviceStatus)status);
|
||||
}
|
||||
|
||||
public Device(IntPtr deviceHandle,
|
||||
IntPtr internalHandle,
|
||||
float horizontalViewAngle,
|
||||
float verticalViewAngle,
|
||||
float range,
|
||||
float baseline,
|
||||
DeviceType type,
|
||||
bool isStreaming,
|
||||
uint status,
|
||||
string serialNumber) : this(deviceHandle, internalHandle, horizontalViewAngle,
|
||||
verticalViewAngle, range, baseline, type, isStreaming, status, serialNumber, 0)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// For internal use only.
|
||||
/// </summary>
|
||||
|
@ -228,6 +244,12 @@ namespace Leap
|
|||
/// </summary>
|
||||
public string SerialNumber { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Reports the ID assoicated with the device
|
||||
///
|
||||
/// </summary>
|
||||
public uint DeviceID { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the internal status field of the current device
|
||||
/// </summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue