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
endThis is provided as a slightly shorter way to retrieve both the x and y location of the mouse cursor.