[Bf-blender-cvs] [a6b1c158c99] master: Cleanup: remove unused gesture event.

Campbell Barton noreply at git.blender.org
Wed Dec 18 05:49:11 CET 2019


Commit: a6b1c158c99b3538921a4f9dd435b18a8093a400
Author: Campbell Barton
Date:   Wed Dec 18 15:46:03 2019 +1100
Branches: master
https://developer.blender.org/rBa6b1c158c99b3538921a4f9dd435b18a8093a400

Cleanup: remove unused gesture event.

===================================================================

M	source/blender/windowmanager/wm_event_types.h

===================================================================

diff --git a/source/blender/windowmanager/wm_event_types.h b/source/blender/windowmanager/wm_event_types.h
index e39e6a8698b..3bd0851d60c 100644
--- a/source/blender/windowmanager/wm_event_types.h
+++ b/source/blender/windowmanager/wm_event_types.h
@@ -317,7 +317,7 @@ enum {
   EVT_TWEAK_L = 0x5002,
   EVT_TWEAK_M = 0x5003,
   EVT_TWEAK_R = 0x5004,
-  EVT_GESTURE = 0x5010,
+  /* 0x5010 (and lower) should be left to add other tweak types in the future. */
 
   /* 0x5011 is taken, see EVT_ACTIONZONE_FULLSCREEN */
 
@@ -369,7 +369,7 @@ enum {
         BUTTON7MOUSE))
 
 /* test whether the event is tweak event */
-#define ISTWEAK(event_type) ((event_type) >= EVT_TWEAK_L && (event_type) <= EVT_GESTURE)
+#define ISTWEAK(event_type) ((event_type) >= EVT_TWEAK_L && (event_type) <= EVT_TWEAK_R)
 
 /* test whether the event is a NDOF event */
 #define ISNDOF(event_type) ((event_type) >= NDOF_MOTION && (event_type) < NDOF_LAST)



More information about the Bf-blender-cvs mailing list