Skip to content

Commit 3eef8cb

Browse files
committed
Only define calculateDeltas for Mac.
1 parent ad713f0 commit 3eef8cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mouse.c

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656

5757
#endif
5858

59+
#if defined(IS_MACOSX)
5960
/**
6061
* Calculate the delta for a mouse move and add them to the event.
6162
* @param event The mouse move event (by ref).
@@ -80,6 +81,7 @@ void calculateDeltas(CGEventRef *event, MMPoint point)
8081

8182
CFRelease(get);
8283
}
84+
#endif
8385

8486

8587
/**

0 commit comments

Comments
 (0)