42 IntPtr internalHandle,
43 float horizontalViewAngle,
44 float verticalViewAngle,
49 string serialNumber) {
51 InternalHandle = internalHandle;
65 float horizontalViewAngle,
66 float verticalViewAngle,
70 string serialNumber) {
117 public IntPtr
Handle {
get;
private set; }
119 private IntPtr InternalHandle;
123 return result ==
eLeapRS.eLeapRS_Success;
178 public float Range {
get;
private set; }
229 deviceInfo.
serial = IntPtr.Zero;
230 deviceInfo.
size = (uint)System.Runtime.InteropServices.Marshal.SizeOf(deviceInfo);
233 if (result !=
eLeapRS.eLeapRS_Success)
235 uint status = deviceInfo.
status;
236 System.Runtime.InteropServices.Marshal.FreeCoTaskMem(deviceInfo.
serial);
The Device class represents a physically connected device.
Device()
Constructs a default Device object.
bool Equals(Device other)
Compare Device object equality.
string SerialNumber
An alphanumeric serial number unique to each device.
bool IsLightingBad
The software has detected excessive IR illumination, which may interfere with tracking....
bool IsSmudged
The software has detected a possible smudge on the translucent cover over the Leap Motion cameras.
Device(IntPtr deviceHandle, IntPtr internalHandle, float horizontalViewAngle, float verticalViewAngle, float range, float baseline, DeviceType type, uint status, string serialNumber)
float Range
The maximum reliable tracking range from the center of this device.
override string ToString()
A string containing a brief, human readable description of the Device object.
void Update(Device updatedDevice)
For internal use only.
void Update(float horizontalViewAngle, float verticalViewAngle, float range, float baseline, uint status, string serialNumber)
For internal use only.
float Baseline
The distance in mm between the center points of the stereo sensors.
float VerticalViewAngle
The angle in radians of view along the z axis of this device.
DeviceType Type
The device type.
bool SetPaused(bool pause)
uint GetDeviceStatus()
Returns the internal status field of the current device
IntPtr Handle
For internal use only.
DeviceType
The available types of Leap Motion controllers.
bool IsLowResource
The software has entered low-resource mode
bool IsStreaming
Reports whether this device is streaming data to your application.
float HorizontalViewAngle
The angle in radians of view along the x axis of this device.
static eLeapRS GetDeviceInfo(IntPtr hDevice, ref LEAP_DEVICE_INFO info)
static eLeapRS LeapSetPause(IntPtr hConnection, bool pause)