diff options
author | Carsten Weisse <[email protected]> | 2005-02-09 09:21:10 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2005-02-09 09:21:10 +0000 |
commit | 85f00699db449b49af6fc450517e101bd952cf1b (patch) | |
tree | 1e6d8095d6f68076956d3e5a1347154a0234c6c4 /test/jake2/render | |
parent | 914db068cdc9939f41a0418db8927a961fbb0cae (diff) |
changes to hanlde the new renderer interface (keyboardhandler)
Diffstat (limited to 'test/jake2/render')
-rw-r--r-- | test/jake2/render/DancingQueens.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/jake2/render/DancingQueens.java b/test/jake2/render/DancingQueens.java index 8341ecb..194ee18 100644 --- a/test/jake2/render/DancingQueens.java +++ b/test/jake2/render/DancingQueens.java @@ -2,7 +2,7 @@ * DancingQueens.java * Copyright (C) 2003 * - * $Id: DancingQueens.java,v 1.6 2004-12-14 01:08:32 cawe Exp $ + * $Id: DancingQueens.java,v 1.7 2005-02-09 09:21:10 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -64,21 +64,25 @@ public class DancingQueens test.run(); } + KBD kbd; + void init() { - Qcommon.Init(new String[] {"DancingQueens"}); + Qcommon.Init(new String[] {"DancingQueens", "+set", "s_initsound", "0", "+set", "vid_ref", "lwjgl"}); // sehr wichtig !!! VID.Shutdown(); String[] names = Renderer.getDriverNames(); System.out.println("Registered Drivers: " + Arrays.asList(names)); - this.re = Renderer.getDriver("fastjogl"); + this.re = Renderer.getDriver("lwjgl"); System.out.println("Use driver: " + re); System.out.println(); re.Init(0, 0); + kbd = re.getKeyboardHandler(); + kbd.Init(); Cmd.AddCommand("togglemouse", togglemouse); Cbuf.AddText("bind t togglemouse"); @@ -126,7 +130,7 @@ public class DancingQueens while (true) { re.updateScreen(callback); - re.getKeyboardHandler().Update(); + kbd.Update(); Cbuf.Execute(); } } |