diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-12-12 07:52:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-12-12 07:52:34 +0300 |
commit | bbb71ccbde023436a80230f286c1535afe96b753 (patch) | |
tree | 99a26c47b3c86e4b1bae769cfaa9d19b7b52a3ea /source/blender/windowmanager/wm_event_types.h | |
parent | 768e69eb37e19d50420fa5de33ae6736d8030c5d (diff) |
Fix action-zones showing up as shortcuts
Toggle fullscreen area for eg, was showing the action-zone instead of
the key binding.
Diffstat (limited to 'source/blender/windowmanager/wm_event_types.h')
-rw-r--r-- | source/blender/windowmanager/wm_event_types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/windowmanager/wm_event_types.h b/source/blender/windowmanager/wm_event_types.h index 40a3d148b7b..b2c4c0494ce 100644 --- a/source/blender/windowmanager/wm_event_types.h +++ b/source/blender/windowmanager/wm_event_types.h @@ -308,9 +308,11 @@ enum { TIMERF = 0x011F, /* last timer */ /* Actionzones, tweak, gestures: 0x500x, 0x501x */ +#define EVT_ACTIONZONE_FIRST EVT_ACTIONZONE_AREA EVT_ACTIONZONE_AREA = 0x5000, EVT_ACTIONZONE_REGION = 0x5001, EVT_ACTIONZONE_FULLSCREEN = 0x5011, +#define EVT_ACTIONZONE_LAST (EVT_ACTIONZONE_FULLSCREEN + 1) /* NOTE: these values are saved in keymap files, do not change them but just add new ones */ @@ -374,6 +376,8 @@ enum { /* test whether the event is a NDOF event */ #define ISNDOF(event_type) ((event_type) >= NDOF_MOTION && (event_type) < NDOF_LAST) +#define IS_EVENT_ACTIONZONE(event_type) ((event_type) >= EVT_ACTIONZONE_FIRST && (event_type) < EVT_ACTIONZONE_LAST) + /* test whether event type is acceptable as hotkey, excluding modifiers */ #define ISHOTKEY(event_type) \ ((ISKEYBOARD(event_type) || ISMOUSE(event_type) || ISNDOF(event_type)) && \ |