From ea30724ef6660bcefbae7097ba0d0a349ce63624 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 11 Apr 2012 19:47:58 +0200 Subject: Graph UI Demo: Add zoom w/ mouse wheel (desktop) --- .../jogamp/opengl/test/junit/graph/demos/GPUUISceneGLListener0A.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test/com/jogamp/opengl/test/junit/graph/demos/GPUUISceneGLListener0A.java b/src/test/com/jogamp/opengl/test/junit/graph/demos/GPUUISceneGLListener0A.java index f066f0b84..eaac2b1bf 100644 --- a/src/test/com/jogamp/opengl/test/junit/graph/demos/GPUUISceneGLListener0A.java +++ b/src/test/com/jogamp/opengl/test/junit/graph/demos/GPUUISceneGLListener0A.java @@ -426,5 +426,10 @@ public class GPUUISceneGLListener0A implements GLEventListener { ly = ny; } } + + @Override + public void mouseWheelMoved(MouseEvent e) { + zoom += 2f*e.getWheelRotation(); + } } } \ No newline at end of file -- cgit v1.2.3