init(type:)
Returns the event mask for the specified type.
Declaration
init(type: NSEvent.EventType)Parameters
- type:
The event type whose mask you want to get.
Return Value
The event mask corresponding to the specified type. The returned mask is equivalent to the number 1 left-shifted by type bits.