Name

mousePressed

Examples
# Click within the image to change 
# the value of the rectangle

def draw(): 
    if mousePressed:
        fill(0)
    else:
        fill(255)
    rect(25, 25, 50, 50)

THIS EXAMPLE IS BROKEN

Description
Related mouseX
mouseY
pmouseX
pmouseY
mousePressed()
mouseReleased()
mouseClicked()
mouseMoved()
mouseDragged()
mouseButton
mouseWheel()
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License