# input_key_get_mouse

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input-keys.c#L557
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-input_key_get_mouse/

```c
int input_key_get_mouse(struct screen *s, struct mouse_event *m, u_int x, u_int y, const char **rbuf, size_t *rlen)
```

## Parameters

- `s` (`struct screen *`)
- `m` (`struct mouse_event *`)
- `x` (`u_int`)
- `y` (`u_int`)
- `rbuf` (`const char **`)
- `rlen` (`size_t *`)

## Called by

- [`input_key_mouse`](/en/tmux/3.2a/reference/c-function-input-keys-c-input_key_mouse/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input-keys.c#L640)
- [`popup_key_cb`](/en/tmux/3.2a/reference/c-function-popup-c-popup_key_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/popup.c#L259)

## Calls

- [`input_key_split2`](/en/tmux/3.2a/reference/c-function-input-keys-c-input_key_split2/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input-keys.c#L607)
- [`xsnprintf`](/en/tmux/3.2a/reference/c-function-xsnprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input-keys.c#L601)

## Referenced by

- [`server_client_push_stderr`](/en/tmux/3.2a/reference/c-function-server_client_push_stderr/) (function)

## Referenced declarations

- [`ALL_MOUSE_MODES`](/en/tmux/3.2a/reference/c-define-tmux-h-all_mouse_modes/) (constant)
- [`mouse_event.b`](/en/tmux/3.2a/reference/c-struct-mouse_event-b/) (attribute)
- [`mouse_event.lb`](/en/tmux/3.2a/reference/c-struct-mouse_event-lb/) (attribute)
- [`screen.mode`](/en/tmux/3.2a/reference/c-struct-screen-mode/) (attribute)
- [`MODE_MOUSE_ALL`](/en/tmux/3.2a/reference/c-define-tmux-h-mode_mouse_all/) (constant)
- [`MODE_MOUSE_SGR`](/en/tmux/3.2a/reference/c-define-tmux-h-mode_mouse_sgr/) (constant)
- [`MODE_MOUSE_UTF8`](/en/tmux/3.2a/reference/c-define-tmux-h-mode_mouse_utf8/) (constant)
- [`MOTION_MOUSE_MODES`](/en/tmux/3.2a/reference/c-define-tmux-h-motion_mouse_modes/) (constant)
- [`MOUSE_BUTTONS`](/en/tmux/3.2a/reference/c-define-tmux-h-mouse_buttons/) (constant)
- [`MOUSE_DRAG`](/en/tmux/3.2a/reference/c-define-tmux-h-mouse_drag/) (constant)
- [`mouse_event`](/en/tmux/3.2a/reference/c-struct-mouse_event/) (struct)
- [`screen`](/en/tmux/3.2a/reference/c-struct-screen/) (struct)
- [`mouse_event.sgr_b`](/en/tmux/3.2a/reference/c-struct-mouse_event-sgr_b/) (attribute)
- [`mouse_event.sgr_type`](/en/tmux/3.2a/reference/c-struct-mouse_event-sgr_type/) (attribute)
