---
title: CGEventTapLocation
framework: coregraphics
role: symbol
role_heading: Enumeration
path: coregraphics/cgeventtaplocation
---

# CGEventTapLocation

Constants that specify possible tapping points for events.

## Declaration

```swift
enum CGEventTapLocation
```

## Overview

Overview In addition to the three tapping points described above, an event tap may also be placed where annotated events are delivered to a specific application. For more information, see the function tapCreateForPSN(processSerialNumber:place:options:eventsOfInterest:callback:userInfo:).

## Topics

### Constants

- [CGEventTapLocation.cghidEventTap](coregraphics/cgeventtaplocation/cghideventtap.md)
- [CGEventTapLocation.cgSessionEventTap](coregraphics/cgeventtaplocation/cgsessioneventtap.md)
- [CGEventTapLocation.cgAnnotatedSessionEventTap](coregraphics/cgeventtaplocation/cgannotatedsessioneventtap.md)

### Initializers

- [init(rawValue:)](coregraphics/cgeventtaplocation/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Enumerations

- [CGCaptureOptions](coregraphics/cgcaptureoptions.md)
- [CGColorConversionInfoTransformType](coregraphics/cgcolorconversioninfotransformtype.md)
- [CGColorRenderingIntent](coregraphics/cgcolorrenderingintent.md)
- [CGConfigureOption](coregraphics/cgconfigureoption.md)
- [CGDisplayChangeSummaryFlags](coregraphics/cgdisplaychangesummaryflags.md)
- [CGDisplayStreamFrameStatus](coregraphics/cgdisplaystreamframestatus.md)
- [CGDisplayStreamUpdateRectType](coregraphics/cgdisplaystreamupdaterecttype.md)
- [CGError](coregraphics/cgerror.md)
- [CGEventField](coregraphics/cgeventfield.md)
- [CGEventFilterMask](coregraphics/cgeventfiltermask.md)
- [CGEventFlags](coregraphics/cgeventflags.md)
- [CGEventMouseSubtype](coregraphics/cgeventmousesubtype.md)
- [CGEventSourceStateID](coregraphics/cgeventsourcestateid.md)
- [CGEventSuppressionState](coregraphics/cgeventsuppressionstate.md)
- [CGEventTapOptions](coregraphics/cgeventtapoptions.md)
