Processing, Controlling the cursor, how do you tell it to left click?
in
Programming Questions
•
1 year ago
Hi everyone, atm im stuck, ive got a nice proccesing sketch controlling my cursor from skeleton data of my hand.
Only problem is i cant figure out how to get it to left click or stay left clicked (i.e. to move items around)
im using on pose rules in an if statment so all i litrally need is someone to tell me how to control the mouse through processing, ive looked at the references but they dont really help.
Thank you for helping or just looking
this is the bit i need help on what is the command for the mouse click?
Only problem is i cant figure out how to get it to left click or stay left clicked (i.e. to move items around)
im using on pose rules in an if statment so all i litrally need is someone to tell me how to control the mouse through processing, ive looked at the references but they dont really help.
Thank you for helping or just looking
this is the bit i need help on what is the command for the mouse click?
- if(leftHand.y > leftElbow.y && leftHand.x > leftElbow.x) {
stroke(255);
mousePressed = true;
println("did it work?");
}else{
1