CursorPosition object X number - X coordinate of the cursor Y number - Y coordinate of the cursor See application.getCursorPosition().