Skip to content

applsdev/LeapC

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C wrapper around the Leap Motion library

Overview

This is a work in progress wrapper around the C++ Leap Motion library.

The idea is to have a minimalistic C API for easy integration with other languages like Common Lisp or Lua.

It does not cover the entire Leap Motion API, current limitations are:

  • There is no distinction between Fingers and Tools, therefore only Pointables are not implemented yet.
  • Pointables are available only through their associated Hands (not through their Frame).
  • "find by id" methods are not implemented yet.
  • methods on Hand that give a result relative to a previous Frame like translation or rotationAxis are not implemented yet.
  • Xcode project only, though it should be fairly easy to port the project to Visual Studio and the code is vanilla C.
  • Utilities from the LeapMath library are not implemented, and might never be.

Usage

  1. Clone the repository.
  2. Copy or make symbolic links from the Leap.h, LeapMath.h and libLeap.dylib files to the ./vendor/ sub-directory.
  3. Open the Xcode project and relocate the libLeap.dylib shared library so Xcode can find it.
  4. Take a look at the example, it should be fairly easy to understand how to set-up the callbacks.

Feedback and suggestions

Feel free to open a ticket or to send me an email camille@osculator.net.

/*
 * C wrapper around the Leap Motion library.
 * Copyright (c) 2013, Camille Troillard. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an "AS
 * IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 * express or implied.  See the License for the specific language
 * governing permissions and limitations under the License.
 *
 */

About

C wrapper around the Leap Motion library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published