Returns true if the left mouse button has been pressed down on this frame. It will fire just once for each click.

It will only return true when it's pressed down, and on subsequent frames will return false, until the mouse is clicked again.

.isLeftPressed() { |x, y| ... }

You can also attach a block which is yielded into if the method would return true. The x and y location of the mouse cursor are passed into the block.

See also

isLeftClick - isLeftDown