From: <ma...@us...> - 2007-01-04 23:28:35
|
Revision: 2718 http://svn.sourceforge.net/java-game-lib/?rev=2718&view=rev Author: matzon Date: 2007-01-04 15:28:33 -0800 (Thu, 04 Jan 2007) Log Message: ----------- osx cursor animation emulation enabled Modified Paths: -------------- trunk/LWJGL/src/java/org/lwjgl/input/Mouse.java Modified: trunk/LWJGL/src/java/org/lwjgl/input/Mouse.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/input/Mouse.java 2007-01-04 14:12:36 UTC (rev 2717) +++ trunk/LWJGL/src/java/org/lwjgl/input/Mouse.java 2007-01-04 23:28:33 UTC (rev 2718) @@ -136,8 +136,9 @@ private static InputImplementation implementation; - /** Whether we're running windows - which need to manually update cursor animation */ - private static final boolean isWindows = LWJGLUtil.getPlatform() == LWJGLUtil.PLATFORM_WINDOWS; + /** Whether we need cursor animation emulation */ + private static final boolean emulateCursorAnimation = LWJGLUtil.getPlatform() == LWJGLUtil.PLATFORM_WINDOWS || + LWJGLUtil.getPlatform() == LWJGLUtil.PLATFORM_MACOSX; /** * Mouse cannot be constructed. @@ -584,7 +585,7 @@ * shouldn't be called otherwise */ public static synchronized void updateCursor() { - if (isWindows && currentCursor != null && currentCursor.hasTimedOut()) { + if (emulateCursorAnimation && currentCursor != null && currentCursor.hasTimedOut()) { currentCursor.nextCursor(); try { setNativeCursor(currentCursor); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |