# input_key_get_mouse

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L713
- **Page:** https://libtmux.org/en/tmux/latest/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/latest/reference/c-function-input-keys-c-input_key_mouse/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input-keys.c#L811)
- [`popup_key_cb`](/en/tmux/latest/reference/c-function-popup-c-popup_key_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L639)

## Calls

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

## Other function references

- [`input_key_split2`](/en/tmux/latest/reference/c-function-input-keys-c-input_key_split2/) (function)

## Referenced declarations

- [`ALL_MOUSE_MODES`](/en/tmux/latest/reference/c-define-tmux-h-all_mouse_modes/) (constant)
- [`mouse_event.b`](/en/tmux/latest/reference/c-struct-mouse_event-b/) (attribute)
- [`mouse_event.lb`](/en/tmux/latest/reference/c-struct-mouse_event-lb/) (attribute)
- [`screen.mode`](/en/tmux/latest/reference/c-struct-screen-mode/) (attribute)
- [`MODE_MOUSE_ALL`](/en/tmux/latest/reference/c-define-tmux-h-mode_mouse_all/) (constant)
- [`MODE_MOUSE_SGR`](/en/tmux/latest/reference/c-define-tmux-h-mode_mouse_sgr/) (constant)
- [`MODE_MOUSE_UTF8`](/en/tmux/latest/reference/c-define-tmux-h-mode_mouse_utf8/) (constant)
- [`MOTION_MOUSE_MODES`](/en/tmux/latest/reference/c-define-tmux-h-motion_mouse_modes/) (constant)
- [`MOUSE_DRAG`](/en/tmux/latest/reference/c-define-tmux-h-mouse_drag/) (constant)
- [`mouse_event`](/en/tmux/latest/reference/c-struct-mouse_event/) (struct)
- [`MOUSE_PARAM_BTN_OFF`](/en/tmux/latest/reference/c-define-tmux-h-mouse_param_btn_off/) (constant)
- [`MOUSE_PARAM_MAX`](/en/tmux/latest/reference/c-define-tmux-h-mouse_param_max/) (constant)
- [`MOUSE_PARAM_POS_OFF`](/en/tmux/latest/reference/c-define-tmux-h-mouse_param_pos_off/) (constant)
- [`MOUSE_PARAM_UTF8_MAX`](/en/tmux/latest/reference/c-define-tmux-h-mouse_param_utf8_max/) (constant)
- [`MOUSE_RELEASE`](/en/tmux/latest/reference/c-define-tmux-h-mouse_release/) (constant)
- [`screen`](/en/tmux/latest/reference/c-struct-screen/) (struct)
- [`mouse_event.sgr_b`](/en/tmux/latest/reference/c-struct-mouse_event-sgr_b/) (attribute)
- [`mouse_event.sgr_type`](/en/tmux/latest/reference/c-struct-mouse_event-sgr_type/) (attribute)
