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); 

source 1, source 2


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -