CGGetLastMouseDelta()
Reports the change in mouse position since the last mouse movement event received by the application.
Declaration
func CGGetLastMouseDelta() -> (x: Int32, y: Int32)Return Value
A tuple whose x and y members represent the horizontal and vertical change in the mouse position since the last mouse movement event.
Discussion
This function is not recommended for general use. Instead, you should use the mouse-tracking functions provided by the NSEvent class.
See Also
Functions
CGAcquireDisplayFadeReservation(_:_:)CGAssociateMouseAndMouseCursorPosition(_:)CGBeginDisplayConfiguration(_:)CGCancelDisplayConfiguration(_:)CGCaptureAllDisplays()CGCaptureAllDisplaysWithOptions(_:)CGCompleteDisplayConfiguration(_:_:)CGConfigureDisplayFadeEffect(_:_:_:_:_:_:)CGConfigureDisplayMirrorOfDisplay(_:_:_:)CGConfigureDisplayMode(_:_:_:)CGConfigureDisplayOrigin(_:_:_:_:)CGConfigureDisplayStereoOperation(_:_:_:_:)CGConfigureDisplayWithDisplayMode(_:_:_:_:)CGCursorIsDrawnInFramebuffer()CGCursorIsVisible()