# cmd_mouse_at

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L762
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-cmd_mouse_at/

```c
int cmd_mouse_at(struct window_pane *wp, struct mouse_event *m, u_int *xp, u_int *yp, int last)
```

## Parameters

- `wp` (`struct window_pane *`)
- `m` (`struct mouse_event *`)
- `xp` (`u_int *`)
- `yp` (`u_int *`)
- `last` (`int`)

## Called by

- [`format_cb_mouse_hyperlink`](/en/tmux/3.7c/reference/c-function-format-c-format_cb_mouse_hyperlink/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L1267)
- [`format_cb_mouse_line`](/en/tmux/3.7c/reference/c-function-format-c-format_cb_mouse_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L1292)
- [`format_cb_mouse_word`](/en/tmux/3.7c/reference/c-function-format-c-format_cb_mouse_word/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L1242)
- [`input_key_mouse`](/en/tmux/3.7c/reference/c-function-input-keys-c-input_key_mouse/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L807)
- [`mode_tree_key`](/en/tmux/3.7c/reference/c-function-mode_tree_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L1232)
- [`window_copy_drag_update`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_drag_update/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6526)
- [`window_copy_move_mouse`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_move_mouse/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6438)
- [`window_copy_start_drag`](/en/tmux/3.7c/reference/c-function-window_copy_start_drag/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6466)

## Calls

- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L774)

## Referenced by

- [`format_cb_mouse_x`](/en/tmux/3.7c/reference/c-function-format-c-format_cb_mouse_x/) (function)
- [`format_cb_mouse_y`](/en/tmux/3.7c/reference/c-function-format-c-format_cb_mouse_y/) (function)

## Referenced declarations

- [`mouse_event.lx`](/en/tmux/3.7c/reference/c-struct-mouse_event-lx/) (attribute)
- [`mouse_event.ly`](/en/tmux/3.7c/reference/c-struct-mouse_event-ly/) (attribute)
- [`mouse_event`](/en/tmux/3.7c/reference/c-struct-mouse_event/) (struct)
- [`mouse_event.ox`](/en/tmux/3.7c/reference/c-struct-mouse_event-ox/) (attribute)
- [`mouse_event.oy`](/en/tmux/3.7c/reference/c-struct-mouse_event-oy/) (attribute)
- [`mouse_event.statusat`](/en/tmux/3.7c/reference/c-struct-mouse_event-statusat/) (attribute)
- [`mouse_event.statuslines`](/en/tmux/3.7c/reference/c-struct-mouse_event-statuslines/) (attribute)
- [`window_pane.sx`](/en/tmux/3.7c/reference/c-struct-window_pane-sx/) (attribute)
- [`window_pane.sy`](/en/tmux/3.7c/reference/c-struct-window_pane-sy/) (attribute)
- [`window_pane`](/en/tmux/3.7c/reference/c-struct-window_pane/) (struct)
- [`mouse_event.x`](/en/tmux/3.7c/reference/c-struct-mouse_event-x/) (attribute)
- [`window_pane.xoff`](/en/tmux/3.7c/reference/c-struct-window_pane-xoff/) (attribute)
- [`mouse_event.y`](/en/tmux/3.7c/reference/c-struct-mouse_event-y/) (attribute)
- [`window_pane.yoff`](/en/tmux/3.7c/reference/c-struct-window_pane-yoff/) (attribute)
