Jogamp
Unit Tests: Add listening to NEWTDemoListener* (Missed in prev. patch)
authorSven Gothel <sgothel@jausoft.com>
Wed, 16 Sep 2015 02:46:01 +0000 (04:46 +0200)
committerSven Gothel <sgothel@jausoft.com>
Wed, 16 Sep 2015 02:46:01 +0000 (04:46 +0200)
src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/newt/TestGearsES2NEWT.java
src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/newt/TestLandscapeES2NewtCanvasAWT.java

index f08e9a2..ac8ceb5 100644 (file)
@@ -185,6 +185,7 @@ public class TestGearsES2NEWT extends UITestCase {
         newtDemoListener.quitAdapterEnable(true);
         glWindow.addKeyListener(newtDemoListener);
         glWindow.addMouseListener(newtDemoListener);
+        glWindow.addWindowListener(newtDemoListener);
 
         if( useAnimator ) {
             animator.add(glWindow);
index f73eb67..d24113b 100644 (file)
@@ -115,6 +115,7 @@ public class TestLandscapeES2NewtCanvasAWT extends UITestCase {
         final NewtAWTReparentingKeyAdapter newtDemoListener = new NewtAWTReparentingKeyAdapter(frame, newtCanvasAWT, glWindow);
         newtDemoListener.quitAdapterEnable(true);
         glWindow.addKeyListener(newtDemoListener);
+        glWindow.addMouseListener(newtDemoListener);
         glWindow.addWindowListener(newtDemoListener);
 
         if( useAnimator ) {
http://JogAmp.org git info: FAQ, tutorial and man pages.