From 48fe0910a1cca20a1e9188d88164d3ea732a0b9f Mon Sep 17 00:00:00 2001 From: Brian Matzon Date: Thu, 4 Jan 2007 23:28:33 +0000 Subject: [PATCH] osx cursor animation emulation enabled --- src/java/org/lwjgl/input/Mouse.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/java/org/lwjgl/input/Mouse.java b/src/java/org/lwjgl/input/Mouse.java index bd959d09..02ca0e1f 100644 --- a/src/java/org/lwjgl/input/Mouse.java +++ b/src/java/org/lwjgl/input/Mouse.java @@ -136,8 +136,9 @@ public class Mouse { 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 @@ public class Mouse { * 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);