Hi, Le 4 janv. 2010 à 02:22, Shaul Kedem a écrit :
> Hi, > I've patched and compiled on mac OSX 10.6, it works great! > > Can we have other axis to rotate the view when doing the circle > gesture? it's really weird in default cam view because it is rotating > against what seems to be the camera normal (?). but again, it's an > excellent progress :) Currently, the rotation is against the screen normal. Which axis would you prefer ? This 3rd axis selection can depend upon the trackball/turntable choice in user prefs. But for this, I may need help from a math expert to make the right rotation matrix. > another comment is that when pinching it zooms way too fast for me :) The sensitivity is currently hardcoded in the GHOST_SystemCocoa::handleMouseEvent function. You can try other values. I don't think it'll call for a sensitivity setting in user prefs, as an acceptable for all value should be found. > Thanks for the new years gift :-) > > Shaul > > p.s. do you have commit rights? Yes, but as this impacts files beyond cocoa, I want to have some feedback (including from other OSes users) before committing it. > > On Sun, Jan 3, 2010 at 12:59 PM, Damien Plisson <damien.plis...@yahoo.fr> > wrote: >> Hi all, >> >> During the vacation time, I was stuck in an Internet-free place (an issue), >> but without a mouse (more serious issue), so to keep my Blender experience >> as good as possible, I needed to get these shiny trackpad multitouch >> features operational ! >> So, based on trackpad pan work initiated by James Deery [his mail of Nov 5th >> 2009], I've implemented the handling of the trackpad 2-fingers gestures : >> >> - 2 fingers scroll (MOUSEPAN / GHOST_kTrackpadEventScroll event) pans 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) rotates the >> view around the axis orthogonal to the screen (the 3rd axis !) >> >> This is currently fully implemented for OSX (GHOST Cocoa fires the new >> events), but there must be some PC laptops with similar features that'll >> take advantage of this... PC users, can you confirm ? (I remember using a >> laptop with the 2D scroll features on its trackpad). >> FYI, OSX implementation compiles from 10.4, though the >> >> In Ghost, I've currently implemented an auto-detection of the source >> peripheral, so that a regular mouse still sends MOUSEWHEEL events. >> Apple special mice behave like trackpad (not configurable from documented >> API), so the mighty mouse trackball sends 2D scroll events. And the magic >> mouse touch gestures must be like trackpad's. >> >> Do you think it should be kept in "auto" mode (wheel events for regular >> mouse, scroll/zoom/rotate events for trackpad/special mouse), or be an >> option user configurable ? >> >> I've posted this as patch #20555 in the patch tracker : >> https://projects.blender.org/tracker/index.php?func=detail&aid=20555&group_id=9&atid=127 >> for your reviews, comments & suggestions. >> >> Damien >> _______________________________________________ >> Bf-committers mailing list >> Bf-committers@blender.org >> http://lists.blender.org/mailman/listinfo/bf-committers >> > _______________________________________________ > Bf-committers mailing list > Bf-committers@blender.org > http://lists.blender.org/mailman/listinfo/bf-committers _______________________________________________ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers