Contents

tapEnable(tap:enable:)

Enables or disables an event tap.

Declaration

class func tapEnable(tap: CFMachPort, enable: Bool)

Parameters

  • tap:

    The event tap to enable or disable.

  • enable:

    Pass true to enable the event tap. To disable it, pass false.

Discussion

Event taps are normally enabled when created. If an event tap becomes unresponsive, or if a user requests that event taps be disabled, then a kCGEventTapDisabled event is passed to the event tap callback function. Event taps may be re-enabled by calling this function.

See Also

Functions