CGPostScrollWheelEvent
Synthesizes a low-level scrolling event on the local machine.
Declaration
extern CGError CGPostScrollWheelEvent(CGWheelCount wheelCount, int32_t wheel1, ...);Parameters
- wheelCount
The number of scrolling devices, up to a maximum of 3.
- wheel1
A value that reflects the movement of the primary scrolling device on the mouse.
- …
Up to two values that reflect the movements of the other scrolling devices on the mouse (if any).
Returns
A result code. See the result codes described in Quartz Display Services.
Discussion
Scrolling movement is generally represented by small signed integer values, typically in a range from -10 to +10. Large values may have unexpected results, depending on the application that processes the event.
This function is not recommended for general use because of undocumented special cases and undesirable side effects. The recommended replacement for this function is CGEventCreateScrollWheelEvent, which allows you to create a scrolling event and customize the event before posting it to the event system.
See Also
Functions
CGAcquireDisplayFadeReservation(_:_:)CGAssociateMouseAndMouseCursorPosition(_:)CGBeginDisplayConfiguration(_:)CGCancelDisplayConfiguration(_:)CGCaptureAllDisplays()CGCaptureAllDisplaysWithOptions(_:)CGColorConversionInfoCreateFromListCGCompleteDisplayConfiguration(_:_:)CGConfigureDisplayFadeEffect(_:_:_:_:_:_:)CGConfigureDisplayMirrorOfDisplay(_:_:_:)CGConfigureDisplayMode(_:_:_:)CGConfigureDisplayOrigin(_:_:_:_:)CGConfigureDisplayStereoOperation(_:_:_:_:)CGConfigureDisplayWithDisplayMode(_:_:_:_:)CGContextDrawPDFDocument