Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Up one directory from the leap.dll and leapcsharp.dll is <code>LeapCSharp.NET3.5.dll</code> and <code>LeapCSharp.NET4.0.dll</code>. (<a href="https://developer.leapmotion.com/downloads" rel="nofollow">LeapDeveloperKit\LeapSDK\lib</a>)</p> <p>These are the tools for Visual studio references.</p> <p>If you want to use the leap.dll file then you'll need to use <a href="http://msdn.microsoft.com/en-us/magazine/cc164123.aspx" rel="nofollow">P/Invoke</a></p> <p>EDIT: Perhaps you could check out this <a href="http://irisclasson.com/2013/05/02/developing-for-leap-motion-in-c-tutorial-video-slides-and-code/" rel="nofollow">leap tutorial</a>, complete with <a href="https://github.com/IrisClasson/Leap-Motion" rel="nofollow">code examples</a>.</p> <p>Here is a better <a href="http://msdn.microsoft.com/en-us/library/aa288468%28v=vs.71%29.aspx" rel="nofollow">P/Invoke tutorial</a>. </p> <p>Using an application like <a href="http://www.nirsoft.net/utils/dll_export_viewer.html" rel="nofollow">DLL Export Viewer</a> you can see all the methods available for your leap dll's. These would be your entry points using P/Invoke. There is also a <a href="http://clrinterop.codeplex.com/releases/view/14120" rel="nofollow">PInvoke assistance tool</a> that will write your c# for you.</p> <p>However, doing this with the <code>leap.dll</code>:</p> <pre><code>[DllImport("leap.dll")] public static extern bool hasFocus(); </code></pre> <p>Is the same as doing this with the <code>LeapCSharp.Net4.0</code> dll reference:</p> <pre><code>Leap.Controller con = new Controller(); var focus = con.HasFocus; </code></pre> <p>So you dont need both sets of DLL's.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload