setInitialCursorPosition method
Sets the initial cursor position within the UI.
Useful for initializing cursor state before any interactions occur.
x
: The horizontal position of the cursor.y
: The vertical position of the cursor.
Implementation
void setInitialCursorPosition(int x, int y) {
cursorX = x;
cursorY = y;
}