diff options
author | Sven Gothel <[email protected]> | 2012-04-11 19:47:58 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-04-11 19:47:58 +0200 |
commit | ea30724ef6660bcefbae7097ba0d0a349ce63624 (patch) | |
tree | 88135da0aa2cda9503ab23d10890aeb224ffc650 /src | |
parent | 2cfc59f99b47c0a77fbc59e27d78e2580a87034f (diff) |
Graph UI Demo: Add zoom w/ mouse wheel (desktop)
Diffstat (limited to 'src')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/graph/demos/GPUUISceneGLListener0A.java | 5 |
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 |