secondsSinceLastEventType(_:eventType:)
Returns the elapsed time since the last event for a Quartz event source.
Declaration
class func secondsSinceLastEventType(_ stateID: CGEventSourceStateID, eventType: CGEventType) -> CFTimeIntervalParameters
- stateID:
The source state to access. Pass one of the constants listed in Cgeventsourcestateid.
- eventType:
The event type to access. To get the elapsed time since the previous input event—keyboard, mouse, or tablet—specify
kCGAnyInputEventType.
Return Value
The time in seconds since the previous input event of the specified type.
See Also
Functions
CGAcquireDisplayFadeReservation(_:_:)CGAssociateMouseAndMouseCursorPosition(_:)CGBeginDisplayConfiguration(_:)CGCancelDisplayConfiguration(_:)CGCaptureAllDisplays()CGCaptureAllDisplaysWithOptions(_:)CGCompleteDisplayConfiguration(_:_:)CGConfigureDisplayFadeEffect(_:_:_:_:_:_:)CGConfigureDisplayMirrorOfDisplay(_:_:_:)CGConfigureDisplayMode(_:_:_:)CGConfigureDisplayOrigin(_:_:_:_:)CGConfigureDisplayStereoOperation(_:_:_:_:)CGConfigureDisplayWithDisplayMode(_:_:_:_:)CGCursorIsDrawnInFramebuffer()CGCursorIsVisible()