fix: make certain that gl.tick is always called

This commit is contained in:
Brian Matzon 2003-03-28 23:46:29 +00:00
parent 164daef315
commit d3c77abc4b
1 changed files with 7 additions and 2 deletions

View File

@ -118,11 +118,16 @@ public class MouseTest {
private void wiggleMouse() {
while (!gl.isCloseRequested()) {
gl.tick();
if(gl.isMinimized()) {
try {
Thread.sleep(100);
} catch (InterruptedException inte) {
inte.printStackTrace();
}
continue;
}
gl.tick();
Mouse.poll();
Keyboard.poll();