Blender Git Commit Log

Git Commits -> Revision 91d89c1

Revision 91d89c1 by Campbell Barton (master)
October 17, 2009, 14:08 (GMT)
Adjustments to continuous grab
- Use an enum for grab modes rather then boolean options.
-- GHOST_kGrabNormal: continuous grab userpref disabled
-- GHOST_kGrabWrap: wrap the mouse at the screen bounds *
-- GHOST_kGrabHide: hide the mouse while grabbing and restore the mouse where it was initially pressed *

GrabWrap is nice for transform and tools where you want some idea where the cursor is, previously I found both restoring the mouse at its original location and restoring at a clamped location was confusing with operators like transform, wrapping is not ideal but IMHO the best of a bad bunch of options.
GrabHide is for numbuts, where restoring the mouse at the initial location isnt so confusing.

Commit Details:

Full Hash: 91d89c1ff7c215744e46957a1e7cc40adb7ac066
SVN Revision: 23902
Parent Commit: 53624a5
Lines Changed: +118, -121

15 Modified Paths:

/intern/ghost/GHOST_C-api.h (+1, -1) (Diff)
/intern/ghost/GHOST_IWindow.h (+1, -1) (Diff)
/intern/ghost/GHOST_Rect.h (+22, -0) (Diff)
/intern/ghost/GHOST_Types.h (+6, -0) (Diff)
/intern/ghost/intern/GHOST_C-api.cpp (+2, -2) (Diff)
/intern/ghost/intern/GHOST_SystemX11.cpp (+28, -23) (Diff)
/intern/ghost/intern/GHOST_Window.cpp (+7, -8) (Diff)
/intern/ghost/intern/GHOST_Window.h (+17, -40) (Diff)
/intern/ghost/intern/GHOST_WindowCocoa.h (+1, -1) (Diff)
/intern/ghost/intern/GHOST_WindowX11.cpp (+13, -33) (Diff)
/intern/ghost/intern/GHOST_WindowX11.h (+4, -1) (Diff)
/source/blender/editors/interface/interface_handlers.c (+2, -2) (Diff)
/source/blender/windowmanager/intern/wm_cursors.c (+9, -4) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+3, -3) (Diff)
/source/blender/windowmanager/WM_api.h (+2, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021