java - Processing, mouse control through Kinect, Telling processing to left click -
i wondering if guys can help.
i've made processing sketch takes skeleton data , position gives them robot class , can control mouse pretty nicley.
only problem cant find out how tell processing leftclick, or stay leftclicked while if statement in hold.
kinect.drawlimb(calibrateduserid, simpleopenni.skel_left_shoulder, simpleopenni.skel_left_elbow); //right hand above right elbow // , // right hand right of right elbow if(lefthand.y > leftelbow.y && lefthand.x > leftelbow.x) { stroke(255); mousepressed = true; **this being section cant figure out!** println("did work?"); }else{ stroke(355, 0, 0); } kinect.drawlimb(calibrateduserid, simpleopenni.skel_left_hand, simpleopenni.skel_left_elbow); } }
if r instance of robot class:
r.mousepress(inputevent.button1_mask); r.mouserelease(inputevent.button1_mask);
Comments
Post a Comment