From b5892681cbae221b2fb6174770f8ce58409ed6eb Mon Sep 17 00:00:00 2001 From: Holger Zickner Date: Thu, 16 Dec 2004 22:45:55 +0000 Subject: jwjgl mouse handling works fine without recentering --- src/jake2/sys/LWJGLKBD.java | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/jake2/sys/LWJGLKBD.java') diff --git a/src/jake2/sys/LWJGLKBD.java b/src/jake2/sys/LWJGLKBD.java index 6b09c35..3693697 100644 --- a/src/jake2/sys/LWJGLKBD.java +++ b/src/jake2/sys/LWJGLKBD.java @@ -12,9 +12,6 @@ import org.lwjgl.opengl.Display; * @author dsanders */ public class LWJGLKBD extends KBD { - - private int win_w2; - private int win_h2; private char[] lwjglKeycodeMap = null; @@ -31,9 +28,6 @@ public class LWJGLKBD extends KBD { if (!Keyboard.isTranslationEnabled()) Keyboard.enableTranslation(); if (!Mouse.isBuffered()) Mouse.enableBuffer(); - win_w2=Display.getDisplayMode().getWidth()/2; - win_h2=Display.getDisplayMode().getHeight()/2; - if (lwjglKeycodeMap == null) lwjglKeycodeMap = new char[256]; mouseHasTwoButtons = (Mouse.getButtonCount() == 2); @@ -187,13 +181,6 @@ public class LWJGLKBD extends KBD { public void Do_Key_Event(int key, boolean down) { Key.Event(key, down, Sys.Milliseconds()); } - - public void centerMouse() - { - Mouse.setPosition(win_x + win_w2,win_y + win_h2); - //Mouse.setGrabbed(true); - //Mouse.setTrackingEnabled(true); - } public void installGrabs() { -- cgit v1.2.3