{ isMouseGestureActive = false; isClicked = false; //clickToggle = false; } ////if (Math.Abs(rightHand.Position.X - leftHand.Position.X) < 0.2) //if (Math.Abs(rightHand.Position.Z - head.Position.Z) > 0.5) //{ // if (!isMouseGestureActive) // { // if (!isKeyENTERActive) // { // //sensor.ElevationAngle = (int) head.Position.Y; // //isMouseGestureActive = true; // //System.Windows.Forms.SendKeys.SendWait("{ENTER}"); // // } // } //} //else //{ // isKeyENTERActive = false; // isMouseGestureActive = false; //} } private void head, Joint rightHand, Joint leftHand) { // Processes gesture of either hand being farther than a set amount from the head if (rightHand.Position.X > head.Position.X + 0.55 && enableMouse) { if (!isForwardGestureActive) { isForwardGestureActive = true; System.Windows.Forms.SendKeys.SendWait("{Right}"); } } else { isForwardGestureActive = false; } if (leftHand.Position.X < head.Position.X - 0.55) { if (!isBackGestureActive) { isBackGestureActive = true; System.Windows.Forms.SendKeys.SendWait("{Left}"); } } else { isBackGestureActive = false; } } private double norm2(Point headPos, Point rightHandPos) {
{ isMouseGestureActive = false; isClicked = false; //clickToggle = false; } ////if (Math.Abs(rightHand.Position.X - leftHand.Position.X) < 0.2) //if (Math.Abs(rightHand.Position.Z - head.Position.Z) > 0.5) //{ // if (!isMouseGestureActive) // { // if (!isKeyENTERActive) // { // //sensor.ElevationAngle = (int) head.Position.Y; // //isMouseGestureActive = true; // //System.Windows.Forms.SendKeys.SendWait("{ENTER}"); // // } // } //} //else //{ // isKeyENTERActive = false; // isMouseGestureActive = false; //} } private void head, Joint rightHand, Joint leftHand) { // Processes gesture of either hand being farther than a set amount from the head if (rightHand.Position.X > head.Position.X + 0.55 && enableMouse) { if (!isForwardGestureActive) { isForwardGestureActive = true; System.Windows.Forms.SendKeys.SendWait("{Right}"); } } else { isForwardGestureActive = false; } if (leftHand.Position.X < head.Position.X - 0.55) { if (!isBackGestureActive) { isBackGestureActive = true; System.Windows.Forms.SendKeys.SendWait("{Left}"); } } else { isBackGestureActive = false; } } private double norm2(Point headPos, Point rightHandPos) {
016.%20Kinect%20Source.docx