diff options
author | Holger Zickner <[email protected]> | 2004-12-16 22:45:55 +0000 |
---|---|---|
committer | Holger Zickner <[email protected]> | 2004-12-16 22:45:55 +0000 |
commit | b5892681cbae221b2fb6174770f8ce58409ed6eb (patch) | |
tree | 20fb616981bfa458c5ba5319c987dd0aa15986d9 /src/jake2/sys/LWJGLKBD.java | |
parent | cac5258eab7d100c317ff68764bba963c52d5d77 (diff) |
jwjgl mouse handling works fine without recentering
Diffstat (limited to 'src/jake2/sys/LWJGLKBD.java')
-rw-r--r-- | src/jake2/sys/LWJGLKBD.java | 13 |
1 files changed, 0 insertions, 13 deletions
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() { |