osx cursor animation emulation enabled
This commit is contained in:
parent
b7b203d29a
commit
48fe0910a1
|
@ -136,8 +136,9 @@ public class Mouse {
|
||||||
|
|
||||||
private static InputImplementation implementation;
|
private static InputImplementation implementation;
|
||||||
|
|
||||||
/** Whether we're running windows - which need to manually update cursor animation */
|
/** Whether we need cursor animation emulation */
|
||||||
private static final boolean isWindows = LWJGLUtil.getPlatform() == LWJGLUtil.PLATFORM_WINDOWS;
|
private static final boolean emulateCursorAnimation = LWJGLUtil.getPlatform() == LWJGLUtil.PLATFORM_WINDOWS ||
|
||||||
|
LWJGLUtil.getPlatform() == LWJGLUtil.PLATFORM_MACOSX;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Mouse cannot be constructed.
|
* Mouse cannot be constructed.
|
||||||
|
@ -584,7 +585,7 @@ public class Mouse {
|
||||||
* shouldn't be called otherwise
|
* shouldn't be called otherwise
|
||||||
*/
|
*/
|
||||||
public static synchronized void updateCursor() {
|
public static synchronized void updateCursor() {
|
||||||
if (isWindows && currentCursor != null && currentCursor.hasTimedOut()) {
|
if (emulateCursorAnimation && currentCursor != null && currentCursor.hasTimedOut()) {
|
||||||
currentCursor.nextCursor();
|
currentCursor.nextCursor();
|
||||||
try {
|
try {
|
||||||
setNativeCursor(currentCursor);
|
setNativeCursor(currentCursor);
|
||||||
|
|
Loading…
Reference in New Issue