# KEYC_IS_MOUSE

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

```c
#define KEYC_IS_MOUSE(key) (((key) & KEYC_MASK_KEY) >= KEYC_MOUSE && \
 ((key) & KEYC_MASK_KEY) < KEYC_BSPACE)
```

## Referenced by

- [`cmd_list_keys_get_width`](/en/tmux/3.2a/reference/c-function-cmd-list-keys-c-cmd_list_keys_get_width/) (function)
- [`cmd_list_keys_print_notes`](/en/tmux/3.2a/reference/c-function-cmd-list-keys-c-cmd_list_keys_print_notes/) (function)
- [`input_key`](/en/tmux/3.2a/reference/c-function-input_key/) (function)
- [`input_key_pane`](/en/tmux/3.2a/reference/c-function-input_key_pane/) (function)
- [`menu_key_cb`](/en/tmux/3.2a/reference/c-function-menu-c-menu_key_cb/) (function)
- [`mode_tree_key`](/en/tmux/3.2a/reference/c-function-mode_tree_key/) (function)
- [`popup_key_cb`](/en/tmux/3.2a/reference/c-function-popup-c-popup_key_cb/) (function)
- [`server_client_key_callback`](/en/tmux/3.2a/reference/c-function-server-client-c-server_client_key_callback/) (function)
- [`window_pane_key`](/en/tmux/3.2a/reference/c-function-window_pane_key/) (function)
- [`window_tree_key`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_key/) (function)

## Referenced declarations

- [`KEYC_BSPACE`](/en/tmux/3.2a/reference/c-enum-tmux-h-241271275060253221275056143052225065321046366375-keyc_bspace/) (constant)
- [`KEYC_MASK_KEY`](/en/tmux/3.2a/reference/c-define-tmux-h-keyc_mask_key/) (constant)
- [`KEYC_MOUSE`](/en/tmux/3.2a/reference/c-enum-tmux-h-241271275060253221275056143052225065321046366375-keyc_mouse/) (constant)
