From cc2490ea7eb4dc1480bc26d62a3bbb15d387c35b Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 10 May 2018 15:57:36 +0200 Subject: input: add a define for the number of mouse buttons and use it (Why the fuck are there up to 20 mouse buttons?) --- input/keycodes.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'input') 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) -- cgit v1.2.3