Language

onMousePressed


onMousePressed(MOUSE button, int x, int y)

Description

onMousePressed() is a callback function called when the user pressed a mouse button.

Parameters

button
The MOUSE button pressed.
x
The x coordinate of the mouse.
y
The y coordinate of the mouse.