getMouseXY

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

With a block attached, this will yield the current x and y location into the block.

getControls().getMouseXY() do |x, y|
    // use the x and y location here
end

This is provided as a slightly shorter way to retrieve both the x and y location of the mouse cursor.

See also

getMouseX - getMouseY