The feud-example and LWJGL 1.1.4

Started by EgonOlsen, February 25, 2008, 10:05:15 PM

Previous topic - Next topic

EgonOlsen

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:


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:


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);
}