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 <campbell@blender.org>2022-03-08 05:48:40 +0300
committerCampbell Barton <campbell@blender.org>2022-03-08 05:48:40 +0300
commitb58e660828ebfa2b7ba6a6f5b80b5fb8c205564f (patch)
tree40922a6118988266d074698ac834c8212b89eebe /source/blender/windowmanager/wm_event_types.h
parentf052fb564605a788378d361e161a3447d30814a6 (diff)
Event System: click/click-drag support for NDOF buttons
Support this for completeness, as it's simpler to support click-drag for all events types that support press/release instead of having to document which kinds buttons support click-drag.
Diffstat (limited to 'source/blender/windowmanager/wm_event_types.h')
-rw-r--r--source/blender/windowmanager/wm_event_types.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/windowmanager/wm_event_types.h b/source/blender/windowmanager/wm_event_types.h
index fd0760d1d1c..5ced501dd49 100644
--- a/source/blender/windowmanager/wm_event_types.h
+++ b/source/blender/windowmanager/wm_event_types.h
@@ -371,7 +371,8 @@ enum {
* \note Mouse wheel events are excluded from this macro, while they do generate press events it
* doesn't make sense to have click & click-drag events for a mouse-wheel as it can't be held down.
*/
-#define ISKEYBOARD_OR_BUTTON(event_type) (ISMOUSE_BUTTON(event_type) || ISKEYBOARD(event_type))
+#define ISKEYBOARD_OR_BUTTON(event_type) \
+ (ISMOUSE_BUTTON(event_type) || ISKEYBOARD(event_type) || ISNDOF_BUTTON(event_type))
/** Test whether the event is a modifier key. */
#define ISKEYMODIFIER(event_type) \