---
title: "mouseMoved(onCharacterIndex:coordinate:withModifier:client:)"
framework: InputMethodKit
role: symbol
role_heading: Instance Method
platforms: [macOS 10.5+]
path: "inputmethodkit/imkmousehandling/mousemoved(oncharacterindex:coordinate:withmodifier:client:)"
---

# mouseMoved(onCharacterIndex:coordinate:withModifier:client:)

Handles a mouse-moved event sent to an input method.

## Declaration

```swift
func mouseMoved(onCharacterIndex index: Int, coordinate point: NSPoint, withModifier flags: Int, client sender: Any!) -> Bool
```

## Parameters

- `index`: The index within the sender’s text storage where the mouse-moved event occurred.
- `point`: The point at which the mouse-moved event occurred.
- `flags`: The modifier keys.
- `sender`: The client object.

## Return Value

Return Value true if handled; otherwise false.

## Discussion

Discussion Implement this method if your input method handles mouse-moved events.

## See Also

### Handling Mouse Events

- [mouseDown(onCharacterIndex:coordinate:withModifier:continueTracking:client:)](inputmethodkit/imkmousehandling/mousedown(oncharacterindex:coordinate:withmodifier:continuetracking:client:).md)
- [mouseUp(onCharacterIndex:coordinate:withModifier:client:)](inputmethodkit/imkmousehandling/mouseup(oncharacterindex:coordinate:withmodifier:client:).md)
