automatic polling via Display.update();
This commit is contained in:
parent
351e6f5b19
commit
105c859ed7
|
@ -54,6 +54,7 @@ import org.lwjgl.BufferUtils;
|
||||||
import org.lwjgl.LWJGLException;
|
import org.lwjgl.LWJGLException;
|
||||||
import org.lwjgl.LWJGLUtil;
|
import org.lwjgl.LWJGLUtil;
|
||||||
import org.lwjgl.Sys;
|
import org.lwjgl.Sys;
|
||||||
|
import org.lwjgl.input.Controllers;
|
||||||
import org.lwjgl.input.Keyboard;
|
import org.lwjgl.input.Keyboard;
|
||||||
import org.lwjgl.input.Mouse;
|
import org.lwjgl.input.Mouse;
|
||||||
|
|
||||||
|
@ -569,9 +570,14 @@ public final class Display {
|
||||||
Mouse.poll();
|
Mouse.poll();
|
||||||
Mouse.updateCursor();
|
Mouse.updateCursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Keyboard.isCreated()) {
|
if (Keyboard.isCreated()) {
|
||||||
Keyboard.poll();
|
Keyboard.poll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(Controllers.isCreated()) {
|
||||||
|
Controllers.poll();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue