diff options
author | wm4 <wm4@nowhere> | 2018-05-10 15:57:36 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2018-05-24 19:56:34 +0200 |
commit | cc2490ea7eb4dc1480bc26d62a3bbb15d387c35b (patch) | |
tree | 594273dbfcc150173cd432a693dccf8b4797999f /input | |
parent | be5e46222ba4adccc5a557375beea29d23969a81 (diff) | |
download | mpv-cc2490ea7eb4dc1480bc26d62a3bbb15d387c35b.tar.bz2 mpv-cc2490ea7eb4dc1480bc26d62a3bbb15d387c35b.tar.xz |
input: add a define for the number of mouse buttons and use it
(Why the fuck are there up to 20 mouse buttons?)
Diffstat (limited to 'input')
-rw-r--r-- | input/keycodes.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/input/keycodes.h b/input/keycodes.h index 740ca873fc..604fee53dc 100644 --- a/input/keycodes.h +++ b/input/keycodes.h @@ -135,6 +135,8 @@ #define MP_KEY_IS_MOUSE_BTN_DBL(code) \ ((code) >= MP_MBTN_DBL_BASE && (code) < MP_MBTN_DBL_END) +#define MP_KEY_MOUSE_BTN_COUNT (MP_MBTN_END - MP_MBTN_BASE) + // Apple Remote input module #define MP_AR_BASE (MP_KEY_BASE+0xE0) #define MP_AR_PLAY (MP_AR_BASE + 0) |