diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2011-07-22 00:57:23 +0400 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2011-07-22 00:57:23 +0400 |
commit | 1cce0dd505b72b1e1b2188c9f72fa73d73e6ec4d (patch) | |
tree | 5031c8046959fd4a28970a6cead7fdd72c38612d /source | |
parent | b326a6841ecae45a59ba14f51741e66788961cea (diff) |
Prepare for NDOF event handling all the way to keymaps (and keymap editor).
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/windowmanager/wm_event_types.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/windowmanager/wm_event_types.h b/source/blender/windowmanager/wm_event_types.h index 210dd902b99..579f20ca605 100644 --- a/source/blender/windowmanager/wm_event_types.h +++ b/source/blender/windowmanager/wm_event_types.h @@ -125,6 +125,7 @@ enum { NDOF_BUTTON_8, NDOF_BUTTON_9, NDOF_BUTTON_10, + NDOF_LAST }; @@ -290,8 +291,11 @@ enum { /* test whether the event is tweak event */ #define ISTWEAK(event) (event >= EVT_TWEAK_L && event <= EVT_GESTURE) + /* test whether the event is a NDOF event */ +#define ISNDOF(event) (event >= NDOF_MOTION && event < NDOF_LAST) + /* test whether event type is acceptable as hotkey, excluding modifiers */ -#define ISHOTKEY(event) ((ISKEYBOARD(event) || ISMOUSE(event)) && event!=ESCKEY && !(event>=LEFTCTRLKEY && event<=LEFTSHIFTKEY) && !(event>=UNKNOWNKEY && event<=GRLESSKEY)) +#define ISHOTKEY(event) ((ISKEYBOARD(event) || ISMOUSE(event) || ISNDOF(event)) && event!=ESCKEY && !(event>=LEFTCTRLKEY && event<=LEFTSHIFTKEY) && !(event>=UNKNOWNKEY && event<=GRLESSKEY)) /* **************** BLENDER GESTURE EVENTS (0x5000) **************** */ |