www.jpct.net

jPCT - a 3d engine for Java => Bugs => Topic started by: EgonOlsen on February 25, 2008, 10:05:15 pm

Title: The feud-example and LWJGL 1.1.4
Post by: EgonOlsen on February 25, 2008, 10:05:15 pm
LWJGL changed its message processing, so that a particular thing that i'm doing in that demo doesn't work under Windows. I won't update the demo ATM because i hope that a future version of LWJGL will handle this case correctly (again...). But in case you want to use that example with LWJGL 1.1.4 under Windows, look at the connect(...)-method in feud.testgame.BlueThunderClient and replace this section:

Code: [Select]
while (mouse.buttonDown(0)) {
      // Avoid entering the level while the mouse button is being pressed
      org.lwjgl.input.Mouse.poll();
      Thread.sleep(10);
}

with this:

Code: [Select]
while (mouse.buttonDown(0)) {
      // Avoid entering the level while the mouse button is being pressed
      org.lwjgl.opengl.Display.processMessages();
      org.lwjgl.input.Mouse.poll();
      Thread.sleep(10);
}