diff options
author | Rami Santina <[email protected]> | 2011-03-30 17:25:10 +0300 |
---|---|---|
committer | Rami Santina <[email protected]> | 2011-03-30 17:25:10 +0300 |
commit | c604c520c174ae5f54931743cd9138c66fcefc9b (patch) | |
tree | 37d505cc5cc9bfdfe6a507724a0743e1c86886bb /src | |
parent | 8c43a24f6ed75b6c8f0b2d5a0b77d3b14e1d745e (diff) |
Text Demo listener: Use keycode instead of keychar
Diffstat (limited to 'src')
-rw-r--r-- | src/demo/GPUTextRendererListenerBase01.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/demo/GPUTextRendererListenerBase01.java b/src/demo/GPUTextRendererListenerBase01.java index 4ee4f62de..d3f46ca20 100644 --- a/src/demo/GPUTextRendererListenerBase01.java +++ b/src/demo/GPUTextRendererListenerBase01.java @@ -172,15 +172,15 @@ public abstract class GPUTextRendererListenerBase01 extends GPURendererListenerB else if(arg0.getKeyCode() == KeyEvent.VK_4){ fontIncr(-10); } - else if(arg0.getKeyChar() == 's') { + else if(arg0.getKeyCode() == KeyEvent.VK_S) { drawFontSet = !drawFontSet; System.err.println("Draw font set: "+drawFontSet); } - else if(arg0.getKeyChar() == 'f'){ + else if(arg0.getKeyCode() == KeyEvent.VK_F){ drawFPS = !drawFPS; System.err.println("Draw FPS: "+drawFPS); } - else if(arg0.getKeyChar() == ' ') { + else if(arg0.getKeyCode() == KeyEvent.VK_SPACE) { nextFontSet(); } } |