diff options
author | Kenneth Russel <[email protected]> | 2009-06-19 20:35:04 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2009-06-19 20:35:04 +0000 |
commit | d075bda489c425d7f1ccd45944db6a8696bb0fd2 (patch) | |
tree | 0d2c22bb410c0d116c60dfc0bb82888006653e72 /src/gleem/TestExaminerViewer.java | |
parent | 3ac44007a441db45e5ed45b901806dc5b0c2a6b6 (diff) |
Improved interaction in ExaminerViewer to match Maya's camera
controls. Added optional up vector. Simplified logic by using
MouseEvent.getModifiersEx(). MouseButtonHelper is no longer necessary
and has been removed. Updated demos.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@357 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/gleem/TestExaminerViewer.java')
-rw-r--r-- | src/gleem/TestExaminerViewer.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gleem/TestExaminerViewer.java b/src/gleem/TestExaminerViewer.java index 03f4a00..aae755a 100644 --- a/src/gleem/TestExaminerViewer.java +++ b/src/gleem/TestExaminerViewer.java @@ -127,7 +127,8 @@ public class TestExaminerViewer { manager.showManipInWindow(manip, (AWTGLAutoDrawable) drawable); // Instantiate ExaminerViewer - viewer = new ExaminerViewer(MouseButtonHelper.numMouseButtons()); + viewer = new ExaminerViewer(); + viewer.setUpVector(Vec3f.Y_AXIS); viewer.attach((AWTGLAutoDrawable) drawable, new HandleBoxManipBSphereProvider(manip)); viewer.viewAll(gl); } |