GafferHQ / gaffer

Gaffer is a node-based application for lookdev, lighting and automation
http://www.gafferhq.org
BSD 3-Clause "New" or "Revised" License
961 stars 207 forks source link

Middle mouse operations on OS X #383

Open johnhaddon opened 11 years ago

johnhaddon commented 11 years ago

Middle mouse buttons don't really exist on OS X, so we can't middle drag nodes from the node graph to the script editor, or track the camera in 3d views. We need to come up with a single standard way of emulating the middle button, or perhaps stop using it entirely and only use left/right and modifiers (also bearing in mind the ctrl-left problem in #379).

bentoogood commented 11 years ago

A 3-button mouse is a hardware requirement of using maya: http://usa.autodesk.com/adsk/servlet/ps/dl/item?siteID=123112&id=15458252&linkID=9242258 Can we not just specify that for gaffer too? Or is it more a question of the operating system not having a proper middle-mouse message handler?

johnhaddon commented 11 years ago

We could specify it for Gaffer too, but I'd much prefer to make it useable on a vanilla mac laptop with no mouse and no funky key manager - basically I would like it to work on the laptop I'm working on right now. Another argument for ignoring the middle button is that generally these days they're scroll wheels and it takes a certain knack to press the button without doing an accidental scroll...

danieldresser commented 11 years ago

I suppose on the positive side, if we make sure middle mouse button is never used for anything important, then it won't conflict anymore with Ben wanting it to be a synonym for panning.

meshula commented 10 years ago

Why not take one of the routes they did in Xcode's interface builder, which is either an option-left drag, or right drag? Both operations result in stretching a wire from one element to another depending on circumstance. I don't think anyone would complain if that was an OSX specific MMB workaround.

OSX has a notion of "other mouse" events which is where MMB events go, but that seems spooky to me, since left and right are explicitly named.