<!--
{
  "documentType" : "article",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/event-type-mask",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Event Type Mask"
}
-->

# Event Type Mask

Specifies an event mask that represents all event types.

## Discussion

This constant is typically used with the functions [`tapCreate(tap:place:options:eventsOfInterest:callback:userInfo:)`](/documentation/CoreGraphics/CGEvent/tapCreate(tap:place:options:eventsOfInterest:callback:userInfo:)) and [`tapCreateForPSN(processSerialNumber:place:options:eventsOfInterest:callback:userInfo:)`](/documentation/CoreGraphics/CGEvent/tapCreateForPSN(processSerialNumber:place:options:eventsOfInterest:callback:userInfo:)) to register an event tap that observes all input events.

## Topics

### Constants

[`#define kCGEventMaskForAllEvents`](/documentation/CoreGraphics/kCGEventMaskForAllEvents)



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)