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

# CGEventMouseSubtype

Constants used with the [`CGEventField.mouseEventSubtype`](/documentation/CoreGraphics/CGEventField/mouseEventSubtype) event field.

```
enum CGEventMouseSubtype
```

## Overview

Tablets may generate specially annotated mouse events that contain values associated with the [`CGEventField.mouseEventSubtype`](/documentation/CoreGraphics/CGEventField/mouseEventSubtype) event field. To learn how to set these values, see the function [`setIntegerValueField(_:value:)`](/documentation/CoreGraphics/CGEvent/setIntegerValueField(_:value:)).

## Topics

### Constants

[`CGEventMouseSubtype.defaultType`](/documentation/CoreGraphics/CGEventMouseSubtype/defaultType)

Specifies that the event is an ordinary mouse event, and does not contain additional tablet device information.

[`CGEventMouseSubtype.tabletPoint`](/documentation/CoreGraphics/CGEventMouseSubtype/tabletPoint)

Specifies that the mouse event originated from a tablet device, and that the various `kCGTabletEvent` field selectors may be used to obtain tablet-specific data from the mouse event.

[`CGEventMouseSubtype.tabletProximity`](/documentation/CoreGraphics/CGEventMouseSubtype/tabletProximity)



---

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)