Skip to content

Commit

Permalink
Only define calculateDeltas for Mac.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed Apr 17, 2016
1 parent ad713f0 commit 3eef8cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@

#endif

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

CFRelease(get);
}
#endif


/**
Expand Down

0 comments on commit 3eef8cb

Please sign in to comment.