# MOUSE_BUTTONS

- **Language:** C
- **Kind:** constant
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tmux.h#L1231
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-define-tmux-h-mouse_buttons/

```c
#define MOUSE_BUTTONS(b) ((b) & MOUSE_MASK_BUTTONS)
```

## Referenced by

- [`input_key_get_mouse`](/en/tmux/3.2a/reference/c-function-input_key_get_mouse/) (function)
- [`menu_key_cb`](/en/tmux/3.2a/reference/c-function-menu-c-menu_key_cb/) (function)
- [`popup_key_cb`](/en/tmux/3.2a/reference/c-function-popup-c-popup_key_cb/) (function)
- [`server_client_check_mouse`](/en/tmux/3.2a/reference/c-function-server-client-c-server_client_check_mouse/) (function)

## Referenced declarations

- [`MOUSE_MASK_BUTTONS`](/en/tmux/3.2a/reference/c-define-tmux-h-mouse_mask_buttons/) (constant)
