It is an object, and then the rest of using the step/draw gui event to determine where your mouse is when you click again. Hope that answers your question :)