<!--
{
  "availability" : [
    "macCatalyst: 13.1.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGDisplayMoveCursorToPoint(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@F@CGDisplayMoveCursorToPoint"
  },
  "title" : "CGDisplayMoveCursorToPoint(_:_:)"
}
-->

# CGDisplayMoveCursorToPoint(_:_:)

Moves the mouse cursor to a specified point relative to the upper-left corner of the display.

```
func CGDisplayMoveCursorToPoint(_ display: CGDirectDisplayID, _ point: CGPoint) -> CGError
```

## Parameters

`display`

The identifier of the display to access.

`point`

The coordinates of a point in local display space. The origin is the upper-left corner of the specified display.

## Return Value

A result code. To interpret the result code, see [`CGError`](/documentation/CoreGraphics/CGError).

## Discussion

The function doesn’t generate events as a result of this move. The action clips points that lie outside the desktop to its bounds.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)