From 650d4e34011bdd19750f45d393f231bcaca0b7b3 Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Sun, 3 Sep 2017 20:46:06 +1000 Subject: [PATCH] input: fix error in MP_KEY_IS_WHEEL Whoops. --- input/keycodes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/keycodes.h b/input/keycodes.h index e14ad48f80..740ca873fc 100644 --- a/input/keycodes.h +++ b/input/keycodes.h @@ -124,7 +124,7 @@ #define MP_KEY_IS_MOUSE_BTN_SINGLE(code) \ ((code) >= MP_MBTN_BASE && (code) < MP_MBTN_END) #define MP_KEY_IS_WHEEL(code) \ - ((code) >= MP_WHEEL_UP && (code) < MP_WHEEL_RIGHT) + ((code) >= MP_WHEEL_UP && (code) <= MP_WHEEL_RIGHT) #define MP_MBTN_DBL_BASE ((MP_KEY_BASE+0xC0)|MP_NO_REPEAT_KEY) #define MP_MBTN_LEFT_DBL (MP_MBTN_DBL_BASE+0)