mousePressed() on a Mac
in
Core Library Questions
•
2 years ago
Hi All.
I have been using processing for some time (both mac and windows) however I have just started having problems with the mousePressed() function on my Mac.
On my Macbook when I click the mouse, mousePressed seems to be called twice. I have a print statement inside the mousePressed event. When I click in my application I get "Mouse Event" printed out twice on the console (and Yes, I am only pressing the mouse once, I am *not* double clicking!).
I have a work around but its a bit of a hack. Any ideas are welcome
Thanks in advance,
Michael
- void mousePressed() {
- println("Mouse Event");
- switch(holdData){
- case(0):
- holdData = 1;
- break;
- case(1):
- holdData = 0;
- break;
- }
- }
1