updatePosition method

void updatePosition(
  1. Object owner,
  2. int x,
  3. int y
)

Updates the cursor position to (x, y) if owner currently owns the cursor.

Implementation

void updatePosition(Object owner, int x, int y) {
  if (_owner != owner) return;
  _x = x;
  _y = y;
  if (_visible) {
    _applyCursor();
  }
}