sanger-tol / PretextView

OpenGL Powered Pretext Contact Map Viewer
Other
27 stars 7 forks source link

Equivalences for those of us lacking some mouse buttons #19

Open rsharris opened 2 years ago

rsharris commented 2 years ago

Is there some place that lists the user interface equivalences for things like the middle or right mouse buttons?

I'm using a mac, and I only have a single click mouse (which is apparently the left click) with scroll button. I came across one PretextView tutorial that indicates the space bar can act as the middle mouse button. But I haven't discovered what to use as the right mouse button (which seems necessary for panning).

I haven't looked at your code, so I don't know if this would be something specific to PretextView or if they are defined by some platform-agnostic UI package you might be using. In either case, are they listed somewhere?

tomlin7 commented 5 months ago

@rsharris I think you are right about the space key mapping.

The middle button has been bound to the following functions: https://github.com/sanger-tol/PretextView/blob/master/PretextView.cpp#L2190-L2273

The space key has been bound to the following functions: https://github.com/sanger-tol/PretextView/blob/master/PretextView.cpp#L6395-L6443