Jogamp
Adapt to JOGL commit 8b33170ec6fd3f215976875cb66d746fa1b48f61, Fix Bug 688: Removal...
authorSven Gothel <sgothel@jausoft.com>
Mon, 17 Jun 2013 07:41:45 +0000 (09:41 +0200)
committerSven Gothel <sgothel@jausoft.com>
Mon, 17 Jun 2013 07:41:45 +0000 (09:41 +0200)
src/demos/GLNewtRun.java
src/demos/es1/RedSquare.java
src/demos/es2/RedSquare.java
src/demos/newt/NEWTTest1.java
src/demos/newt/TaskManagerTest1.java
src/demos/newt/TaskManagerTest2.java
src/jbullet/src/javabullet/demos/opengl/DemoApplication.java

index d02657c..264d504 100755 (executable)
@@ -44,9 +44,6 @@ public class GLNewtRun extends WindowAdapter implements KeyListener, MouseListen
     public void keyReleased(KeyEvent e) { 
         System.out.println(e);
     }
-    public void keyTyped(KeyEvent e) { 
-        System.out.println(e);
-    }
 
     public void mouseClicked(MouseEvent e) {
         System.out.println(" mouseevent: "+e);
index cce9b31..9160ad4 100755 (executable)
@@ -62,8 +62,9 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo
     }
     public void keyReleased(KeyEvent e) { 
         System.out.println("KEY-RELEASED "+Thread.currentThread()+" UNHANDLED "+e);
-    }
-    public void keyTyped(KeyEvent e) { 
+        if( !e.isPrintableKey() || e.isAutoRepeat() ) {
+            return;
+        }
         if(e.getKeyChar()=='f') {
             System.out.println("KEY-TYPED "+Thread.currentThread()+" FULLSCREEN "+e);
             window.setFullscreen(!window.isFullscreen());
index 1269342..21e78cf 100755 (executable)
@@ -49,8 +49,9 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo
     }
     public void keyReleased(KeyEvent e) { 
         System.out.println("KEY-RELEASED "+Thread.currentThread()+" UNHANDLED "+e);
-    }
-    public void keyTyped(KeyEvent e) { 
+        if( !e.isPrintableKey() || e.isAutoRepeat() ) {
+            return;
+        }
         if(e.getKeyChar()=='f') {
             System.out.println("KEY-TYPED "+Thread.currentThread()+" FULLSCREEN "+e);
             window.setFullscreen(!window.isFullscreen());
index 3bcd260..e28ec5a 100644 (file)
@@ -48,9 +48,6 @@ public class NEWTTest1 implements WindowListener, KeyListener, MouseListener
     public void keyReleased(KeyEvent e) {
         System.err.println("keyReleased "+e);
     }
-    public void keyTyped(KeyEvent e) {
-        System.err.println("keyTyped "+e);
-    }
     public void mouseClicked(MouseEvent e) {
         System.err.println("mouseClicked "+e);
     }
index cc71f63..2f9f432 100644 (file)
@@ -60,9 +60,6 @@ public class TaskManagerTest1  implements WindowListener, KeyListener, MouseList
     public void keyReleased(KeyEvent e) {
         System.err.println("keyReleased "+e);
     }
-    public void keyTyped(KeyEvent e) {
-        System.err.println("keyTyped "+e);
-    }
     public void mouseClicked(MouseEvent e) {
         System.err.println("mouseClicked "+e);
     }
index 19a01e3..125a282 100644 (file)
@@ -48,9 +48,6 @@ public class TaskManagerTest2  implements WindowListener, KeyListener, MouseList
     public void keyReleased(KeyEvent e) {
         System.err.println("keyReleased "+e);
     }
-    public void keyTyped(KeyEvent e) {
-        System.err.println("keyTyped "+e);
-    }
     public void mouseClicked(MouseEvent e) {
         System.err.println("mouseClicked "+e);
     }
index 4b7352c..ff1a417 100644 (file)
@@ -292,8 +292,6 @@ public abstract class DemoApplication
             keyboardCallback(e.getKeyChar());
         }
     }
-    public void keyTyped(KeyEvent e) {
-    }
 
     //
     // 
http://JogAmp.org git info: FAQ, tutorial and man pages.