mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-01-06 00:40:00 +01:00
stop updating cursor all the time and only continue animation if mouse is inside window
This commit is contained in:
parent
bbe74afddb
commit
663a7cf235
|
|
@ -630,7 +630,7 @@ public class Mouse {
|
|||
*/
|
||||
public static void updateCursor() {
|
||||
synchronized (OpenGLPackageAccess.global_lock) {
|
||||
if (emulateCursorAnimation && currentCursor != null && currentCursor.hasTimedOut()) {
|
||||
if (emulateCursorAnimation && currentCursor != null && currentCursor.hasTimedOut() && Mouse.isInsideWindow()) {
|
||||
currentCursor.nextCursor();
|
||||
try {
|
||||
setNativeCursor(currentCursor);
|
||||
|
|
|
|||
|
|
@ -761,7 +761,6 @@ final class WindowsDisplay implements DisplayImplementation {
|
|||
private static native int defWindowProc(long hwnd, int msg, long wParam, long lParam);
|
||||
|
||||
private void checkCursorState() {
|
||||
updateCursor();
|
||||
updateClipping();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue