Last active
December 21, 2015 16:09
-
-
Save itokami1123dev/6331434 to your computer and use it in GitHub Desktop.
福岡Haxe勉強会 feat. HTML5+α @福岡 - 第0x00回用のメモ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( frame.gestures && frame.gestures.length ){ | |
var gesture = frame.gestures[0]; | |
var info = { | |
id: gesture.id, | |
type: gesture.type, | |
duration: gesture.duration | |
}; | |
this.data.setLeapGesture( info); | |
}else{ | |
this.data.clearLeapGesture(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment