Experimental option to allow moving the mouse outside the view, "Continuous Grab" in the user-prefs.

- Useful for dragging buttons to the far right when theyd otherwise hit the screen edge.
- Useful for transform though probably NOT what you want when using the transform manipulator (should make an option).
- When enabled, number buttons use this as well as a different conversion of mouse movement
  float numbuts: mouse 1px == 1-clickstep
  int numbuts: 2px == 1 (tried 1:1 but its too jitter prone)

details...
- access as an option to GHOST_SetCursorGrab(grab, warp)
- Currently all operators that grab use this, could be made an operator flag
- only Ghost/X11 supported currently
This commit is contained in:
Campbell Barton
2009-10-07 07:11:10 +00:00
parent 828395744a
commit 77476b294f
15 changed files with 268 additions and 89 deletions

View File

@@ -109,8 +109,8 @@ class USERPREF_PT_view(bpy.types.Panel):
sub1.itemL(text="Mouse Wheel:")
sub1.itemR(view, "wheel_invert_zoom", text="Invert Zoom")
sub1.itemR(view, "wheel_scroll_lines", text="Scroll Lines")
sub1.itemS()
sub1.itemS()
sub1.itemL(text="Mouse Motion:")
sub1.itemR(view, "continuous_mouse", text="Continuous Grab")
sub1.itemS()
sub1.itemL(text="Menus:")
sub1.itemR(view, "open_mouse_over")