Blender Git Commit Log

Git Commits -> Revision 4a011a9

Revision 4a011a9 by Damien Plisson (master)
January 11, 2010, 11:14 (GMT)
Multitouch trackpad 2 fingers gestures implementation

- 2 fingers scroll (MOUSEPAN / GHOST_kTrackpadEventScroll event) pans/scrolls the view
- 2 fingers pinch (MOUSEZOOM / GHOST_kTrackpadEventMagnify event) zooms the view
And in 3D view:
- alt + 2 fingers scroll rotates the view
- 2 fingers rotation (MOUSEROTATE / GHOST_kTrackpadEventRotate) orbits the view.

The implementation uses a new GHOST event type: GHOST_kEventTrackpad, that is then dispatched as Blender MOUSEPAN, MOUSEZOOM
or MOUSEROTATE events.

This is currently fully implemented for OSX (GHOST Cocoa fires the new events), with auto-detection of the source peripheral, so that a regular mouse still sends MOUSEWHEEL events.

Commit Details:

Full Hash: 4a011a99cb9f45e0d76b134d72c2c2ab150ba006
SVN Revision: 25897
Parent Commit: ebb9286
Lines Changed: +389, -57

1 Added Path:

/intern/ghost/intern/GHOST_EventTrackpad.h (+71, -0) (View)

13 Modified Paths:

/intern/ghost/GHOST_Types.h (+23, -0) (Diff)
/intern/ghost/intern/GHOST_SystemCocoa.mm (+68, -12) (Diff)
/source/blender/editors/interface/view2d_ops.c (+35, -0) (Diff)
/source/blender/editors/space_image/image_ops.c (+31, -4) (Diff)
/source/blender/editors/space_image/space_image.c (+2, -0) (Diff)
/source/blender/editors/space_outliner/outliner.c (+3, -0) (Diff)
/source/blender/editors/space_text/space_text.c (+1, -0) (Diff)
/source/blender/editors/space_text/text_ops.c (+34, -19) (Diff)
/source/blender/editors/space_view3d/view3d_edit.c (+69, -19) (Diff)
/source/blender/editors/space_view3d/view3d_ops.c (+5, -0) (Diff)
/source/blender/makesrna/intern/rna_wm.c (+6, -0) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+34, -0) (Diff)
/source/blender/windowmanager/wm_event_types.h (+7, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021