diff options
author | Elia Sarti <vekoon@gmail.com> | 2009-07-25 19:26:06 +0400 |
---|---|---|
committer | Elia Sarti <vekoon@gmail.com> | 2009-07-25 19:26:06 +0400 |
commit | 24d39c0de496cb8c3640564757cae2c383efa154 (patch) | |
tree | b7f7f0c5c168ac00da14404893e7bab62769a130 /source/blender/windowmanager/wm_event_types.h | |
parent | 5b12cb937890f1f85f365b4b1658cef241384ea2 (diff) |
2.5 / Drag & Drop
Commit of basic architecture. Sorry, nothing fun to play with yet.
Added two events: MOUSEDRAG and MOUSEDROP. MOUSEDRAG is sent when left-mouse clicking and then moving the cursor and every time the cursor is moved until the user releases the mouse button, thus generating a MOUSEDROP.
Also added two dummy drag operators in view3d and outliner (place holders for now).
Brecht and Ton: feel free to check/edit especially the event system code. I'm not sure that's the right way to do it. Also, I'm getting some mem leaks which I suspect are caused by my code.
Diffstat (limited to 'source/blender/windowmanager/wm_event_types.h')
-rw-r--r-- | source/blender/windowmanager/wm_event_types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/windowmanager/wm_event_types.h b/source/blender/windowmanager/wm_event_types.h index 6f64cdbde32..6e7186542de 100644 --- a/source/blender/windowmanager/wm_event_types.h +++ b/source/blender/windowmanager/wm_event_types.h @@ -56,6 +56,9 @@ /* only use if you want user option switch possible */ #define ACTIONMOUSE 0x005 #define SELECTMOUSE 0x006 + /* drag & drop support */ +#define MOUSEDRAG 0x007 +#define MOUSEDROP 0x008 /* defaults from ghost */ #define WHEELUPMOUSE 0x00a #define WHEELDOWNMOUSE 0x00b |