Jogamp
Remove workaround for Bug 798 master
authorSven Gothel <sgothel@jausoft.com>
Wed, 24 Jul 2013 09:24:29 +0000 (02:24 -0700)
committerSven Gothel <sgothel@jausoft.com>
Wed, 24 Jul 2013 09:24:29 +0000 (02:24 -0700)
src/jake2/render/opengl/NEWTWin.java
src/jake2/sys/NEWTKBD.java

index df47bb1..5f37fb4 100644 (file)
@@ -494,10 +494,6 @@ public class NEWTWin {
            System.err.println(e);
            if( !e.isAutoRepeat() ) {
                int keyCode = e.getKeyCode();
-               // FIXME: Workaround JOGL/NEWT Bug 798
-               if( 0 == keyCode ) {
-                   keyCode = e.getKeySymbol();
-               }
                if( KeyEvent.VK_HOME == keyCode ) {
                    shouldReparent = true;
                }
index af54a36..4a0ba76 100644 (file)
@@ -119,10 +119,6 @@ final public class NEWTKBD extends KBD
 
        private static int XLateKeyCode(KeyEvent ev) { 
                int code = ev.getKeyCode();
-               // FIXME: Workaround JOGL/NEWT Bug 798
-               if( 0 == code ) {
-                   code = ev.getKeySymbol();
-               }
                 int key = 0;
                switch(code) {
 //     00626                 case XK_KP_Page_Up:      key = K_KP_PGUP; break;
http://JogAmp.org git info: FAQ, tutorial and man pages.