diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2014-03-06 12:00:30 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2014-03-06 12:00:30 +0000 |
commit | 23e944c91d45e49a3c924712c234e7db6891ad98 (patch) | |
tree | 9ca0780e00b98acbcd64fee26b9a151417dabd0f /tmux.h | |
parent | f15fcb6a1d79b67db0aa65a8c0a40c1c15e49720 (diff) | |
download | rtmux-23e944c91d45e49a3c924712c234e7db6891ad98.tar.gz rtmux-23e944c91d45e49a3c924712c234e7db6891ad98.tar.bz2 rtmux-23e944c91d45e49a3c924712c234e7db6891ad98.zip |
Add names for mouse button bits rather than using magic numbers, from Marcel
Partap.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1125,18 +1125,26 @@ struct tty_term { }; LIST_HEAD(tty_terms, tty_term); +/* Mouse button masks. */ +#define MOUSE_MASK_BUTTONS 3 +#define MOUSE_MASK_SHIFT 4 +#define MOUSE_MASK_META 8 +#define MOUSE_MASK_CTRL 16 +#define MOUSE_MASK_DRAG 32 +#define MOUSE_MASK_WHEEL 64 + /* Mouse wheel states. */ #define MOUSE_WHEEL_UP 0 #define MOUSE_WHEEL_DOWN 1 -/* Mouse events. */ +/* Mouse event bits. */ #define MOUSE_EVENT_DOWN 0x1 #define MOUSE_EVENT_DRAG 0x2 #define MOUSE_EVENT_UP 0x4 #define MOUSE_EVENT_CLICK 0x8 #define MOUSE_EVENT_WHEEL 0x10 -/* Mouse flags. */ +/* Mouse flag bits. */ #define MOUSE_RESIZE_PANE 0x1 /* |