|
From: Brian M. <ma...@us...> - 2004-03-21 22:05:10
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2879/java/org/lwjgl/opengl Modified Files: Window.java Log Message: Cursor animation support regardless of platform features Index: Window.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/Window.java,v retrieving revision 1.28 retrieving revision 1.29 diff -u -d -r1.28 -r1.29 --- Window.java 7 Mar 2004 16:01:44 -0000 1.28 +++ Window.java 21 Mar 2004 21:54:55 -0000 1.29 @@ -49,6 +49,7 @@ import org.lwjgl.Display; import org.lwjgl.Sys; +import org.lwjgl.input.Mouse; public final class Window { @@ -352,7 +353,15 @@ * Updates the windows internal state. This must be called at least once per video frame * to handle window close requests, moves, paints, etc. */ - public static native void update(); + public static void update() { + nUpdate(); + + // notify Mouse that we've had an update, so that it may update its cursor if needed + if(Mouse.isCreated()) { + Mouse.updateCursor(); + } + } + public static native void nUpdate(); /** * Determines to the best of the platform's ability whether monitor vysnc is enabled on |