簡體   English   中英

Leap Motion入門

[英]Getting started with Leap Motion

我剛拿到了Leap Motion控制器。 但我必須承認,我不知道如何在SmartMS中啟動和運行基本初始化!

我從https://github.com/logotype/LeapMotionTS中包含了leapmotionts-1.0.9 + 8391.js,並將leap.Core添加到了我項目的uses子句中。 短信接受這樣的初始化:

Controller:=New JController(); 

但我不知道如何設置eventlistener?

我修復了生成的庫並重新生成了javascript(所以它也適用於瀏覽器) https://github.com/andremussche/AndrewsDelphiStuff/tree/master/Smart/LeapMotion

示例代碼:

uses
  leap.core;

{$R 'leapmotionts-1.0.9+8391.js'}

  var j = new JController;
  j.addEventListener(JLeapEvent.LEAPMOTION_CONNECTED,
    procedure(event: JLeapEvent)
    begin
      do something
    end);

我做了一些更多的修復,現在它的工作原理!

要嘗試演示,請下載www文件夾並打開index.html: https//github.com/andremussche/AndrewsDelphiStuff/blob/master/Smart/LeapMotion/www/index.html

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM