From: Brian M. <ma...@us...> - 2005-06-29 20:49:07
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22422/src/java/org/lwjgl/opengl Modified Files: Display.java Log Message: automatic polling via Display.update(); Index: Display.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/Display.java,v retrieving revision 1.52 retrieving revision 1.53 diff -u -d -r1.52 -r1.53 --- Display.java 16 Jun 2005 20:59:55 -0000 1.52 +++ Display.java 29 Jun 2005 20:48:58 -0000 1.53 @@ -54,6 +54,7 @@ import org.lwjgl.LWJGLException; import org.lwjgl.LWJGLUtil; import org.lwjgl.Sys; +import org.lwjgl.input.Controllers; import org.lwjgl.input.Keyboard; import org.lwjgl.input.Mouse; @@ -569,9 +570,14 @@ Mouse.poll(); Mouse.updateCursor(); } + if (Keyboard.isCreated()) { Keyboard.poll(); } + + if(Controllers.isCreated()) { + Controllers.poll(); + } } /** |