Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gestures and Hand identification #57

Open
crashoverride1 opened this issue Apr 8, 2016 · 2 comments
Open

Gestures and Hand identification #57

crashoverride1 opened this issue Apr 8, 2016 · 2 comments

Comments

@crashoverride1
Copy link

Gestures are working without enable and isRight and isLeft methods are not working

@mgauth02
Copy link

isRight and isLeft are not defined by the leap motion json.
To find right or left, there is the type attribute.

Hand.type
Type: string – either “right” or “left”
Identifies whether this Hand is a right or a left hand.

from developer.leapmotion.com/documentation/javascript/api/Leap.Hand.html#Hand.type

So I added
hand.type = json.hands[ i ].type;
in LeapSocket.as line 383.

and
public var type:String;
in Hand.as line 143.

Working now.

@logotype
Copy link
Owner

@mgauth02 thanks, can you send a pull request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants