How to make one mouse click event.
in
Programming Questions
•
1 year ago
Hi, I'm new here.
So right now i'm trying to figure out how to get just one mouse click after pressing and releasing the mouse.
Right now I have
mClicked = False;
void draw() {
if (mClicked)
do blah blah
}
void mousePressed() {
mClicked = true;
}
void mouseReleased() {
mClicked = false;
}
This currently doesn't seem to work since it tracks multiple accounts of clicking as long as mouse is pressed. Can someone help me please?
Thanks so much.
1