fix: make certain that gl.tick is always called
This commit is contained in:
parent
164daef315
commit
d3c77abc4b
|
@ -118,12 +118,17 @@ 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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue