From 6d8e10fdbc4549e8c5e7249e9683dd376bbf35d7 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 15 Jun 2009 10:59:38 +0000 Subject: KeyCode is broken on Unix/X11 git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@350 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4 --- src/demos/es1/RedSquare.java | 2 +- src/demos/es2/RedSquare.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/demos/es1/RedSquare.java b/src/demos/es1/RedSquare.java index 58b5e01..3992fc7 100755 --- a/src/demos/es1/RedSquare.java +++ b/src/demos/es1/RedSquare.java @@ -41,7 +41,7 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo public void keyPressed(KeyEvent e) { System.out.println(glp+" "+e); - if(e.getKeyCode()==KeyEvent.VK_Q) { + if(e.getKeyChar()=='q') { quit = true; } } diff --git a/src/demos/es2/RedSquare.java b/src/demos/es2/RedSquare.java index d1d2c5d..58c55c8 100755 --- a/src/demos/es2/RedSquare.java +++ b/src/demos/es2/RedSquare.java @@ -43,7 +43,7 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo public void keyPressed(KeyEvent e) { System.out.println(glp+" "+e); - if(e.getKeyCode()==KeyEvent.VK_Q) { + if(e.getKeyChar()=='q') { quit = true; } } -- cgit v1.2.3