Examples¶
Example programs using the LeapC library.
Example Connection - A simple wrapper around a LeapC polling thread which is referenced in the other examples.
Callback Example – A basic example that services the LeapC message pump and invokes callback functions in response to service-related events. All callbacks are called on the servicing thread NOT the originating thread.
Polling Example – A modification of the callback example that allows an application to access tracking data and device properties from its thread of choice.
Interpolating Frames Example – Demonstrates how to request frames interpolated to a specific point in time. Interpolation can increase the perception of responsiveness in the tracking data with no increase in latency by matching the effective tracking frame rate exactly to the requested frame rate (whether that frame rate is for the display, for the physics, or for something else altogether).
Images Example – Demonstrates how to get the set of stereo camera images from which a frame of tracking data was generated.
Multi Device Example – Demonstrates how to connect to, and manage, multiple devices using the same LeapC connection.
Recording and Playback Example – Demonstrates how to record a sequence of hand tracking events and play these back later using the LeapC API.