From d075bda489c425d7f1ccd45944db6a8696bb0fd2 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Fri, 19 Jun 2009 20:35:04 +0000 Subject: 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 --- src/demos/vertexProgWarp/VertexProgWarp.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/demos/vertexProgWarp') diff --git a/src/demos/vertexProgWarp/VertexProgWarp.java b/src/demos/vertexProgWarp/VertexProgWarp.java index e6dbca7..8ab7166 100644 --- a/src/demos/vertexProgWarp/VertexProgWarp.java +++ b/src/demos/vertexProgWarp/VertexProgWarp.java @@ -43,7 +43,6 @@ import gleem.BSphere; import gleem.BSphereProvider; import gleem.ExaminerViewer; import gleem.ManipManager; -import gleem.MouseButtonHelper; import gleem.linalg.Vec3f; import java.awt.BorderLayout; import java.awt.Frame; @@ -231,7 +230,8 @@ public class VertexProgWarp extends Demo { manager.registerWindow((AWTGLAutoDrawable) drawable); this.drawable = drawable; - viewer = new ExaminerViewer(MouseButtonHelper.numMouseButtons()); + viewer = new ExaminerViewer(); + viewer.setUpVector(Vec3f.Y_AXIS); viewer.setNoAltKeyMode(true); viewer.setAutoRedrawMode(false); viewer.attach((AWTGLAutoDrawable) drawable, new BSphereProvider() { -- cgit v1.2.3