Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/makesrna/intern/rna_wm_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_wm_api.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_wm_api.c b/source/blender/makesrna/intern/rna_wm_api.c
index 7c3b119abb9..9e41d8c03fc 100644
--- a/source/blender/makesrna/intern/rna_wm_api.c
+++ b/source/blender/makesrna/intern/rna_wm_api.c
@@ -64,6 +64,13 @@ const EnumPropertyItem rna_enum_window_cursor_items[] = {
{WM_CURSOR_NS_SCROLL, "SCROLL_Y", 0, "Scroll-Y", ""},
{WM_CURSOR_NSEW_SCROLL, "SCROLL_XY", 0, "Scroll-XY", ""},
{WM_CURSOR_EYEDROPPER, "EYEDROPPER", 0, "Eyedropper", ""},
+ {WM_CURSOR_PICK_AREA, "PICK_AREA", 0, "Pick Area", ""},
+ {WM_CURSOR_STOP, "STOP", 0, "Stop", ""},
+ {WM_CURSOR_COPY, "COPY", 0, "Copy", ""},
+ {WM_CURSOR_CROSS, "CROSS", 0, "Cross", ""},
+ {WM_CURSOR_MUTE, "MUTE", 0, "Mute", ""},
+ {WM_CURSOR_ZOOM_IN, "ZOOM_IN", 0, "Zoom In", ""},
+ {WM_CURSOR_ZOOM_OUT, "ZOOM_OUT", 0, "Zoom Out", ""},
{0, NULL, 0, NULL, NULL},
};
@@ -306,7 +313,7 @@ static wmKeyMapItem *rna_KeyMap_item_new_from_item(wmKeyMap *km,
wmKeyMapItem *kmi_src,
bool head)
{
- /* wmWindowManager *wm = CTX_wm_manager(C); */
+ // wmWindowManager *wm = CTX_wm_manager(C);
if ((km->flag & KEYMAP_MODAL) == (kmi_src->idname[0] != '\0')) {
BKE_report(reports, RPT_ERROR, "Can not mix modal/non-modal items");
@@ -645,8 +652,8 @@ static wmEvent *rna_Window_event_add_simulate(wmWindow *win,
e.type = type;
e.val = value;
e.is_repeat = false;
- e.x = x;
- e.y = y;
+ e.xy[0] = x;
+ e.xy[1] = y;
e.shift = shift;
e.ctrl = ctrl;