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:
authorCampbell Barton <ideasman42@gmail.com>2019-05-30 07:47:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-05-30 08:03:19 +0300
commit0c8c1602029b5a0a34b7750c03b03fe990104c0e (patch)
tree5e807f8f58549936ca5cd072e0a16f4fd8092646 /source/blender/makesdna/DNA_userdef_types.h
parent82e8e5c871f86e65f332cdde3bd484a55e7e8572 (diff)
WM: use different drag thresholds for mouse/tablet events
Now a small threshold is used for mouse input, avoiding delay when gizmos are activated on drag. Tablet input threshold remains unchanged since it's easier to make small movements when using a tablet. A larger threshold for non-cursor input is now used (typically keyboard) which improves usability when the "Pie Menu on Drag" key-map preference.
Diffstat (limited to 'source/blender/makesdna/DNA_userdef_types.h')
-rw-r--r--source/blender/makesdna/DNA_userdef_types.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h
index fa12de56364..3fbdbbb6afa 100644
--- a/source/blender/makesdna/DNA_userdef_types.h
+++ b/source/blender/makesdna/DNA_userdef_types.h
@@ -735,7 +735,9 @@ typedef struct UserDef {
/** Options for text rendering. */
short text_render;
- char _pad9[2];
+ char _pad9;
+
+ char navigation_mode;
/** From texture.h. */
struct ColorBand coba_weight;
@@ -744,9 +746,11 @@ typedef struct UserDef {
/** Default color for newly created Grease Pencil layers. */
float gpencil_new_layer_col[4];
- short tweak_threshold;
+ /** Drag pixels (scaled by DPI). */
+ char drag_threshold_mouse;
+ char drag_threshold_tablet;
+ char drag_threshold;
char move_threshold;
- char navigation_mode;
char font_path_ui[1024];
char font_path_ui_mono[1024];