Class FLeapWrapper

class FLeapWrapper : public FLeapWrapperBase

Wraps LeapC API into a threaded and event driven delegate callback format

Public Functions

void SetCallbackDelegate(LeapWrapperCallbackInterface *InCallbackDelegate)

Set the LeapWrapperCallbackInterface delegate. Note that only one can be set at any time (static)

virtual LEAP_CONNECTION *OpenConnection(LeapWrapperCallbackInterface *InCallbackDelegate) override

Open the connection and set our static LeapWrapperCallbackInterface delegate

virtual void CloseConnection() override

Close the connection, it will nullify the callback delegate

virtual LEAP_TRACKING_EVENT *GetFrame() override

Get latest frame - critical section locked

virtual LEAP_TRACKING_EVENT *GetInterpolatedFrameAtTime(int64 TimeStamp) override

Uses leap method to get an interpolated frame at a given leap timestamp in microseconds given by e.g. LeapGetNow()