Author Topic: The feud-example and LWJGL 1.1.4  (Read 5352 times)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
The feud-example and LWJGL 1.1.4
« 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);
}
« Last Edit: March 03, 2008, 03:54:38 pm by EgonOlsen »