# input_key_mouse

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L797
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-input-keys-c-input_key_mouse/

```c
static void input_key_mouse(struct window_pane *, struct mouse_event *)
```

## Parameters

- `wp` (`struct window_pane *`)
- `m` (`struct mouse_event *`)

## Called by

- [`input_key_pane`](/en/tmux/3.7c/reference/c-function-input_key_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L407)

## Calls

- [`cmd_mouse_at`](/en/tmux/3.7c/reference/c-function-cmd_mouse_at/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L807)
- [`input_key_get_mouse`](/en/tmux/3.7c/reference/c-function-input_key_get_mouse/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L811)
- [`input_key_write`](/en/tmux/3.7c/reference/c-function-input-keys-c-input_key_write/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L814)
- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L813)
- [`window_pane_visible`](/en/tmux/3.7c/reference/c-function-window_pane_visible/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L809)

## Referenced declarations

- [`ALL_MOUSE_MODES`](/en/tmux/3.7c/reference/c-define-tmux-h-all_mouse_modes/) (constant)
- [`window_pane.event`](/en/tmux/3.7c/reference/c-struct-window_pane-event/) (attribute)
- [`window_pane.id`](/en/tmux/3.7c/reference/c-struct-window_pane-id/) (attribute)
- [`mouse_event.ignore`](/en/tmux/3.7c/reference/c-struct-mouse_event-ignore/) (attribute)
- [`screen.mode`](/en/tmux/3.7c/reference/c-struct-screen-mode/) (attribute)
- [`mouse_event`](/en/tmux/3.7c/reference/c-struct-mouse_event/) (struct)
- [`window_pane.screen`](/en/tmux/3.7c/reference/c-struct-window_pane-screen/) (attribute)
- [`window_pane`](/en/tmux/3.7c/reference/c-struct-window_pane/) (struct)
