<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGEventTapLocation",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@E@CGEventTapLocation"
  },
  "title" : "CGEventTapLocation"
}
-->

# CGEventTapLocation

Constants that specify possible tapping points for events.

```
enum CGEventTapLocation
```

## 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:)`](/documentation/CoreGraphics/CGEvent/tapCreateForPSN(processSerialNumber:place:options:eventsOfInterest:callback:userInfo:)).

## Topics

### Constants

[`CGEventTapLocation.cghidEventTap`](/documentation/CoreGraphics/CGEventTapLocation/cghidEventTap)

Specifies that an event tap is placed at the point where HID system events enter the window server.

[`CGEventTapLocation.cgSessionEventTap`](/documentation/CoreGraphics/CGEventTapLocation/cgSessionEventTap)

Specifies that an event tap is placed at the point where HID system and remote control events enter a login session.

[`CGEventTapLocation.cgAnnotatedSessionEventTap`](/documentation/CoreGraphics/CGEventTapLocation/cgAnnotatedSessionEventTap)

Specifies that an event tap is placed at the point where session events have been annotated to flow to an application.



---

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)