fix: make certain that gl.tick is always called
This commit is contained in:
parent
164daef315
commit
d3c77abc4b
|
@ -118,11 +118,16 @@ public class MouseTest {
|
||||||
|
|
||||||
private void wiggleMouse() {
|
private void wiggleMouse() {
|
||||||
while (!gl.isCloseRequested()) {
|
while (!gl.isCloseRequested()) {
|
||||||
|
gl.tick();
|
||||||
|
|
||||||
if(gl.isMinimized()) {
|
if(gl.isMinimized()) {
|
||||||
|
try {
|
||||||
|
Thread.sleep(100);
|
||||||
|
} catch (InterruptedException inte) {
|
||||||
|
inte.printStackTrace();
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
gl.tick();
|
|
||||||
|
|
||||||
Mouse.poll();
|
Mouse.poll();
|
||||||
Keyboard.poll();
|
Keyboard.poll();
|
||||||
|
|
Loading…
Reference in New Issue