logotype / LeapMotionAS3

Leap Motion AS3 API.
308 stars 72 forks source link

Gestures and Hand identification #57

Open crashoverride1 opened 8 years ago

crashoverride1 commented 8 years ago

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

mgauth02 commented 6 years ago

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 commented 6 years ago

@mgauth02 thanks, can you send a pull request?