<!--
{
  "availability" : [
    "macOS: 10.12.2 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSEvent/EventTypeMask/directTouch",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSEventMask@NSEventMaskDirectTouch"
  },
  "title" : "directTouch"
}
-->

# directTouch

A mask for touch events.

```
static var directTouch: NSEvent.EventTypeMask { get }
```

## Discussion

Use this mask to filter out [`NSEvent.EventType.directTouch`](/documentation/AppKit/NSEvent/EventType/directTouch) events.

---

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)