summaryrefslogtreecommitdiffstats
path: root/src/test/com/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-04-11 19:47:58 +0200
committerSven Gothel <[email protected]>2012-04-11 19:47:58 +0200
commitea30724ef6660bcefbae7097ba0d0a349ce63624 (patch)
tree88135da0aa2cda9503ab23d10890aeb224ffc650 /src/test/com/jogamp
parent2cfc59f99b47c0a77fbc59e27d78e2580a87034f (diff)
Graph UI Demo: Add zoom w/ mouse wheel (desktop)
Diffstat (limited to 'src/test/com/jogamp')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/graph/demos/GPUUISceneGLListener0A.java5
1 files changed, 5 insertions, 0 deletions
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