Contents

secondsSinceLastEventType(_:eventType:)

Returns the elapsed time since the last event for a Quartz event source.

Declaration

class func secondsSinceLastEventType(_ stateID: CGEventSourceStateID, eventType: CGEventType) -> CFTimeInterval

Parameters

  • 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