Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/wm_event_types.h
| Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | enum { | ||||
| BUTTON5MOUSE = 0x0008, | BUTTON5MOUSE = 0x0008, | ||||
| /* More mouse buttons - can't use 9 and 10 here (wheel) */ | /* More mouse buttons - can't use 9 and 10 here (wheel) */ | ||||
| BUTTON6MOUSE = 0x0012, | BUTTON6MOUSE = 0x0012, | ||||
| BUTTON7MOUSE = 0x0013, | BUTTON7MOUSE = 0x0013, | ||||
| /* Extra trackpad gestures */ | /* Extra trackpad gestures */ | ||||
| MOUSEPAN = 0x000e, | MOUSEPAN = 0x000e, | ||||
| MOUSEZOOM = 0x000f, | MOUSEZOOM = 0x000f, | ||||
| MOUSEROTATE = 0x0010, | MOUSEROTATE = 0x0010, | ||||
| MOUSEUNTOUCH = 0x0014, | |||||
| /* defaults from ghost */ | /* defaults from ghost */ | ||||
| WHEELUPMOUSE = 0x000a, | WHEELUPMOUSE = 0x000a, | ||||
| WHEELDOWNMOUSE = 0x000b, | WHEELDOWNMOUSE = 0x000b, | ||||
| /* mapped with userdef */ | /* mapped with userdef */ | ||||
| WHEELINMOUSE = 0x000c, | WHEELINMOUSE = 0x000c, | ||||
| WHEELOUTMOUSE = 0x000d, | WHEELOUTMOUSE = 0x000d, | ||||
| /* Successive MOUSEMOVE's are converted to this, so we can easily | /* Successive MOUSEMOVE's are converted to this, so we can easily | ||||
| * ignore all but the most recent MOUSEMOVE (for better performance), | * ignore all but the most recent MOUSEMOVE (for better performance), | ||||
| ▲ Show 20 Lines • Show All 264 Lines • ▼ Show 20 Lines | |||||
| #define ISKEYBOARD(event_type) \ | #define ISKEYBOARD(event_type) \ | ||||
| ((event_type >= 0x0020 && event_type <= 0x00ff) || \ | ((event_type >= 0x0020 && event_type <= 0x00ff) || \ | ||||
| (event_type >= 0x012c && event_type <= 0x013f)) | (event_type >= 0x012c && event_type <= 0x013f)) | ||||
| /* test whether the event is a modifier key */ | /* test whether the event is a modifier key */ | ||||
| #define ISKEYMODIFIER(event_type) ((event_type >= LEFTCTRLKEY && event_type <= LEFTSHIFTKEY) || event_type == OSKEY) | #define ISKEYMODIFIER(event_type) ((event_type >= LEFTCTRLKEY && event_type <= LEFTSHIFTKEY) || event_type == OSKEY) | ||||
| /* test whether the event is a mouse button */ | /* test whether the event is a mouse button */ | ||||
| #define ISMOUSE(event_type) (event_type >= LEFTMOUSE && event_type <= BUTTON7MOUSE) | #define ISMOUSE(event_type) (event_type >= LEFTMOUSE && event_type <= MOUSEUNTOUCH) | ||||
| /* test whether the event is tweak event */ | /* 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_GESTURE) | ||||
| /* test whether the event is a NDOF event */ | /* test whether the event is a NDOF event */ | ||||
| #define ISNDOF(event_type) (event_type >= NDOF_MOTION && event_type < NDOF_LAST) | #define ISNDOF(event_type) (event_type >= NDOF_MOTION && event_type < NDOF_LAST) | ||||
| /* test whether event type is acceptable as hotkey, excluding modifiers */ | /* test whether event type is acceptable as hotkey, excluding modifiers */ | ||||
| ▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines | |||||