diff options
Diffstat (limited to 'src/jake2/render')
-rw-r--r-- | src/jake2/render/FastJoglRenderer.java | 10 | ||||
-rw-r--r-- | src/jake2/render/JoglBase.java | 13 | ||||
-rw-r--r-- | src/jake2/render/JoglRenderer.java | 14 |
3 files changed, 28 insertions, 9 deletions
diff --git a/src/jake2/render/FastJoglRenderer.java b/src/jake2/render/FastJoglRenderer.java index e333c10..7ec8d7e 100644 --- a/src/jake2/render/FastJoglRenderer.java +++ b/src/jake2/render/FastJoglRenderer.java @@ -2,7 +2,7 @@ * FastJoglRenderer.java * Copyright (C) 2003 * - * $Id: FastJoglRenderer.java,v 1.3 2004-07-16 10:11:34 cawe Exp $ + * $Id: FastJoglRenderer.java,v 1.4 2004-12-14 00:11:09 hzi Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -29,6 +29,8 @@ import jake2.Defines; import jake2.client.*; import jake2.qcommon.xcommand_t; import jake2.render.fastjogl.Misc; +import jake2.sys.JOGLKBD; +import jake2.sys.KBD; import java.awt.Dimension; @@ -39,6 +41,8 @@ import java.awt.Dimension; */ final class FastJoglRenderer extends Misc implements refexport_t, Ref { + private JOGLKBD kbd=new JOGLKBD(); + public static final String DRIVER_NAME = "fastjogl"; static { @@ -304,4 +308,8 @@ final class FastJoglRenderer extends Misc implements refexport_t, Ref { return this; } + public KBD getKeyboardHandler() + { + return kbd; + } }
\ No newline at end of file diff --git a/src/jake2/render/JoglBase.java b/src/jake2/render/JoglBase.java index 4388209..075e306 100644 --- a/src/jake2/render/JoglBase.java +++ b/src/jake2/render/JoglBase.java @@ -2,7 +2,7 @@ * JoglCommon.java * Copyright (C) 2004 * - * $Id: JoglBase.java,v 1.12 2004-11-03 08:53:27 hzi Exp $ + * $Id: JoglBase.java,v 1.13 2004-12-14 00:11:09 hzi Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -31,6 +31,7 @@ import jake2.client.*; import jake2.game.cvar_t; import jake2.qcommon.Cbuf; import jake2.qcommon.xcommand_t; +import jake2.sys.JOGLKBD; import jake2.sys.KBD; import java.awt.*; @@ -227,11 +228,11 @@ public abstract class JoglBase implements GLEventListener { }); // D I F F E R E N T J A K E 2 E V E N T P R O C E S S I N G - window.addComponentListener(KBD.listener); - canvas.addKeyListener(KBD.listener); - canvas.addMouseListener(KBD.listener); - canvas.addMouseMotionListener(KBD.listener); - canvas.addMouseWheelListener(KBD.listener); + window.addComponentListener(JOGLKBD.listener); + canvas.addKeyListener(JOGLKBD.listener); + canvas.addMouseListener(JOGLKBD.listener); + canvas.addMouseMotionListener(JOGLKBD.listener); + canvas.addMouseWheelListener(JOGLKBD.listener); if (fullscreen) { diff --git a/src/jake2/render/JoglRenderer.java b/src/jake2/render/JoglRenderer.java index 4aa619d..f381879 100644 --- a/src/jake2/render/JoglRenderer.java +++ b/src/jake2/render/JoglRenderer.java @@ -2,7 +2,7 @@ * JoglRenderer.java * Copyright (C) 2003 * - * $Id: JoglRenderer.java,v 1.5 2004-07-16 10:11:34 cawe Exp $ + * $Id: JoglRenderer.java,v 1.6 2004-12-14 00:11:03 hzi Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -26,9 +26,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. package jake2.render; import jake2.Defines; -import jake2.client.*; +import jake2.client.refdef_t; +import jake2.client.refexport_t; import jake2.qcommon.xcommand_t; import jake2.render.jogl.Misc; +import jake2.sys.JOGLKBD; +import jake2.sys.KBD; import java.awt.Dimension; @@ -39,6 +42,8 @@ import java.awt.Dimension; */ final class JoglRenderer extends Misc implements refexport_t, Ref { + private JOGLKBD kbd=new JOGLKBD(); + public static final String DRIVER_NAME = "jogl"; static { @@ -301,4 +306,9 @@ final class JoglRenderer extends Misc implements refexport_t, Ref { public refexport_t GetRefAPI() { return this; } + + public KBD getKeyboardHandler() + { + return kbd; + } }
\ No newline at end of file |