Hi
I checked Nehe's lesson 7 in LWJGL, and i saw
private void mainloop() {
if(Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)) { // Exit if Escape is pressed
done = true;
}
if(Display.isCloseRequested()) { // Exit if window is closed
done = true;
}
if (…)
I think this is a bad method for event handling...
what is the best way to handle mouse&key events?
I want my "Idle()" look to run as long as no input event occured... how can i do it?
Thi
