Blender
V3.3
|
Go to the source code of this file.
Macros | |
#define | _EVT_MOUSE_MIN 0x0001 |
#define | _EVT_MOUSE_MAX 0x0011 /* 17 */ |
#define | _EVT_KEYBOARD_MIN 0x0020 |
#define | _EVT_KEYBOARD_MAX 0x00ff /* 255 */ |
#define | _NDOF_MIN NDOF_MOTION |
#define | _NDOF_BUTTON_MIN NDOF_BUTTON_MENU |
#define | _NDOF_MAX NDOF_BUTTON_C |
#define | _NDOF_BUTTON_MAX NDOF_BUTTON_C |
#define _EVT_KEYBOARD_MAX 0x00ff /* 255 */ |
Definition at line 214 of file wm_event_types.h.
#define _EVT_KEYBOARD_MIN 0x0020 |
Definition at line 97 of file wm_event_types.h.
#define _EVT_MOUSE_MAX 0x0011 /* 17 */ |
Definition at line 81 of file wm_event_types.h.
#define _EVT_MOUSE_MIN 0x0001 |
Definition at line 50 of file wm_event_types.h.
#define _NDOF_BUTTON_MAX NDOF_BUTTON_C |
Definition at line 312 of file wm_event_types.h.
#define _NDOF_BUTTON_MIN NDOF_BUTTON_MENU |
Definition at line 253 of file wm_event_types.h.
#define _NDOF_MAX NDOF_BUTTON_C |
Definition at line 311 of file wm_event_types.h.
#define _NDOF_MIN NDOF_MOTION |
Definition at line 252 of file wm_event_types.h.
#define EVT_TYPE_MASK_ALL (EVT_TYPE_MASK_KEYBOARD | EVT_TYPE_MASK_MOUSE | EVT_TYPE_MASK_NDOF | EVT_TYPE_MASK_ACTIONZONE) |
Definition at line 445 of file wm_event_types.h.
#define EVT_TYPE_MASK_HOTKEY_EXCLUDE EVT_TYPE_MASK_KEYBOARD_MODIFIER |
Definition at line 450 of file wm_event_types.h.
#define EVT_TYPE_MASK_HOTKEY_INCLUDE (EVT_TYPE_MASK_KEYBOARD | EVT_TYPE_MASK_MOUSE | EVT_TYPE_MASK_NDOF) |
Definition at line 448 of file wm_event_types.h.
#define IS_EVENT_ACTIONZONE | ( | event_type | ) | ELEM(event_type, EVT_ACTIONZONE_AREA, EVT_ACTIONZONE_REGION, EVT_ACTIONZONE_FULLSCREEN) |
Definition at line 418 of file wm_event_types.h.
#define ISHOTKEY | ( | event_type | ) |
Test whether event type is acceptable as hotkey (excluding modifiers).
Definition at line 422 of file wm_event_types.h.
#define ISKEYBOARD | ( | event_type | ) |
Test whether the event is a key on the keyboard (including modifier keys).
Definition at line 368 of file wm_event_types.h.
#define ISKEYBOARD_OR_BUTTON | ( | event_type | ) | (ISMOUSE_BUTTON(event_type) || ISKEYBOARD(event_type) || ISNDOF_BUTTON(event_type)) |
Test whether the event is a key on the keyboard or any other kind of button that supports press & release (use for click & click-drag detection).
Definition at line 380 of file wm_event_types.h.
#define ISKEYMODIFIER | ( | event_type | ) |
Test whether the event is a modifier key.
Definition at line 384 of file wm_event_types.h.
#define ISMOUSE | ( | event_type | ) | ((event_type) >= _EVT_MOUSE_MIN && (event_type) <= _EVT_MOUSE_MAX) |
Test whether the event is any kind: ISMOUSE_MOTION, ISMOUSE_BUTTON, ISMOUSE_WHEEL & ISMOUSE_GESTURE.
Definition at line 395 of file wm_event_types.h.
#define ISMOUSE_BUTTON | ( | event_type | ) |
Test whether the event is a mouse button (excluding mouse-wheel).
Definition at line 399 of file wm_event_types.h.
#define ISMOUSE_GESTURE | ( | event_type | ) | ((event_type) >= MOUSEPAN && (event_type) <= MOUSESMARTZOOM) |
Test whether the event is a mouse (track-pad) gesture.
Definition at line 411 of file wm_event_types.h.
#define ISMOUSE_MOTION | ( | event_type | ) | ELEM(event_type, MOUSEMOVE, INBETWEEN_MOUSEMOVE) |
Test whether the event is a mouse button (excluding mouse-wheel).
Definition at line 397 of file wm_event_types.h.
#define ISMOUSE_WHEEL | ( | event_type | ) | ((event_type) >= WHEELUPMOUSE && (event_type) <= WHEELOUTMOUSE) |
Test whether the event is a mouse wheel.
Definition at line 409 of file wm_event_types.h.
Test whether the event is a NDOF event.
Definition at line 414 of file wm_event_types.h.
#define ISNDOF_BUTTON | ( | event_type | ) | ((event_type) >= _NDOF_BUTTON_MIN && (event_type) <= _NDOF_BUTTON_MAX) |
Definition at line 415 of file wm_event_types.h.
Test whether the event is timer event.
Definition at line 365 of file wm_event_types.h.
anonymous enum |
wmEvent.customdata type
Enumerator | |
---|---|
EVT_DATA_TIMER | |
EVT_DATA_DRAGDROP | |
EVT_DATA_NDOF_MOTION | |
EVT_DATA_XR |
Definition at line 19 of file wm_event_types.h.
anonymous enum |
wmTabletData.active tablet active, matches GHOST_TTabletMode.
Typically access via event->tablet.active
.
Enumerator | |
---|---|
EVT_TABLET_NONE | |
EVT_TABLET_STYLUS | |
EVT_TABLET_ERASER |
Definition at line 31 of file wm_event_types.h.
anonymous enum |
Definition at line 43 of file wm_event_types.h.
anonymous enum |
Enumerator | |
---|---|
EVT_FILESELECT_FULL_OPEN | |
EVT_FILESELECT_EXEC | |
EVT_FILESELECT_CANCEL | |
EVT_FILESELECT_EXTERNAL_CANCEL |
Definition at line 463 of file wm_event_types.h.
anonymous enum |
Gesture Used in wmEvent.val
Enumerator | |
---|---|
GESTURE_MODAL_CANCEL | |
GESTURE_MODAL_CONFIRM | |
GESTURE_MODAL_SELECT | Uses 'deselect' operator property. |
GESTURE_MODAL_DESELECT | |
GESTURE_MODAL_NOP | Circle select: when no mouse button is pressed |
GESTURE_MODAL_CIRCLE_ADD | Circle select: larger brush. |
GESTURE_MODAL_CIRCLE_SUB | Circle select: smaller brush. |
GESTURE_MODAL_BEGIN | Box select/straight line, activate, use release to detect which button. |
GESTURE_MODAL_IN | Uses 'zoom_out' operator property. |
GESTURE_MODAL_OUT | |
GESTURE_MODAL_CIRCLE_SIZE | circle select: size brush (for trackpad event). |
GESTURE_MODAL_MOVE | Move selection area. |
GESTURE_MODAL_SNAP | Toggle to activate snapping (angle snapping for straight line). |
GESTURE_MODAL_FLIP | Toggle to activate flip (flip the active side of a straight line). |
Definition at line 477 of file wm_event_types.h.
enum eEventType_Mask |
Definition at line 427 of file wm_event_types.h.
bool WM_event_type_mask_test | ( | int | event_type, |
enum eEventType_Mask | mask | ||
) |
Definition at line 170 of file wm_event_query.c.
References EVT_TYPE_MASK_ACTIONZONE, EVT_TYPE_MASK_KEYBOARD, EVT_TYPE_MASK_KEYBOARD_MODIFIER, EVT_TYPE_MASK_MOUSE, EVT_TYPE_MASK_MOUSE_GESTURE, EVT_TYPE_MASK_MOUSE_WHEEL, EVT_TYPE_MASK_NDOF, IS_EVENT_ACTIONZONE, ISKEYBOARD, ISKEYMODIFIER, ISMOUSE, ISMOUSE_GESTURE, ISMOUSE_WHEEL, ISNDOF, and mask().
Referenced by kmi_filter_is_visible_type_mask().