We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi! I am working on Processing v. 3.0.2 on a mac OS X 10.11.4, and cannot get the mouseButton property to differentiate between LEFT and RIGHT button (using the trackpad). Anyone had the same problem? Any hint of how to solve it? It is not a problem of my code because I cannot even get the example in the reference to work. It detects mousePressed and acts ALWAYS as mouseButton == LEFT despite right being pressed. Thanks for the help!
// Click within the image and press // the left and right mouse buttons to // change the value of the rectangle void draw() { if (mousePressed && (mouseButton == LEFT)) { fill(0); } else if (mousePressed && (mouseButton == RIGHT)) { fill(255); } else { fill(126); } rect(25, 25, 50, 50); } :-/
Answers
Problem solved! It was a hardware issue. Is it any way to mark it as that?