diff options
author | wm4 <wm4@nowhere> | 2018-05-10 15:57:36 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2018-05-25 10:17:06 +0200 |
commit | eb08cd75c1f821e55a6c56eec574c058815384bc (patch) | |
tree | c8a79edc694f5891fcae4dcd57622918dc5c114f /input/keycodes.h | |
parent | 25525cee62cdf863b1b7db768e7d594a20df21c7 (diff) | |
download | mpv-eb08cd75c1f821e55a6c56eec574c058815384bc.tar.bz2 mpv-eb08cd75c1f821e55a6c56eec574c058815384bc.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/keycodes.h')
-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) |