Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-01-11 17:38:44 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-01-11 17:40:23 +0400
commit50650e28ea5641b200727fcbe14de83fa10e2c49 (patch)
tree8ae157905baa7f0677d90b467ec8a9fb9c746076 /source/blender/windowmanager/wm_event_types.h
parent1a0c5eb83aaaf18cef25d6d36a2c857c1381516c (diff)
Events: support for buttons 6 & 7 (some trackballs have these) X11 only
Patch by Marcus von Appen Note: this patch makes ISMOUSE accept INBETWEEN_MOUSEMOVE as a mouse event where before it didnt.
Diffstat (limited to 'source/blender/windowmanager/wm_event_types.h')
-rw-r--r--source/blender/windowmanager/wm_event_types.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/windowmanager/wm_event_types.h b/source/blender/windowmanager/wm_event_types.h
index df3096eed07..08cbd535262 100644
--- a/source/blender/windowmanager/wm_event_types.h
+++ b/source/blender/windowmanager/wm_event_types.h
@@ -65,6 +65,9 @@
/* Extra mouse buttons */
#define BUTTON4MOUSE 7
#define BUTTON5MOUSE 8
+ /* More mouse buttons - can't use 9 and 10 here (wheel) */
+#define BUTTON6MOUSE 18
+#define BUTTON7MOUSE 19
/* Extra trackpad gestures */
#define MOUSEPAN 14
#define MOUSEZOOM 15
@@ -297,7 +300,7 @@ enum {
#define ISKEYMODIFIER(event_type) ((event_type >= LEFTCTRLKEY && event_type <= LEFTSHIFTKEY) || event_type == OSKEY)
/* test whether the event is a mouse button */
-#define ISMOUSE(event_type) (event_type >= LEFTMOUSE && event_type <= MOUSEROTATE)
+#define ISMOUSE(event_type) (event_type >= LEFTMOUSE && event_type <= BUTTON7MOUSE)
/* test whether the event is tweak event */
#define ISTWEAK(event_type) (event_type >= EVT_TWEAK_L && event_type <= EVT_GESTURE)