---
title: "mouseMoved(with:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsresponder/mousemoved(with:)"
---

# mouseMoved(with:)

Informs the receiver that the mouse has moved.

## Declaration

```swift
func mouseMoved(with event: NSEvent)
```

## Parameters

- `event`: An object encapsulating information about the mouse-moved event.

## Discussion

Discussion The default implementation simply passes this message to the next responder.

## See Also

### Related Documentation

- [acceptsMouseMovedEvents](appkit/nswindow/acceptsmousemovedevents.md)

### Responding to Mouse Events

- [mouseDown(with:)](appkit/nsresponder/mousedown(with:).md)
- [mouseDragged(with:)](appkit/nsresponder/mousedragged(with:).md)
- [mouseUp(with:)](appkit/nsresponder/mouseup(with:).md)
- [mouseEntered(with:)](appkit/nsresponder/mouseentered(with:).md)
- [mouseExited(with:)](appkit/nsresponder/mouseexited(with:).md)
- [rightMouseDown(with:)](appkit/nsresponder/rightmousedown(with:).md)
- [rightMouseDragged(with:)](appkit/nsresponder/rightmousedragged(with:).md)
- [rightMouseUp(with:)](appkit/nsresponder/rightmouseup(with:).md)
- [otherMouseDown(with:)](appkit/nsresponder/othermousedown(with:).md)
- [otherMouseDragged(with:)](appkit/nsresponder/othermousedragged(with:).md)
- [otherMouseUp(with:)](appkit/nsresponder/othermouseup(with:).md)
