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

# CGEventSourceKeyboardType

Defines a code that represents the type of keyboard used with a specified event source.

```
typealias CGEventSourceKeyboardType = UInt32
```

## Discussion

This code is the same keyboard type identifier used with the <doc://com.apple.documentation/documentation/coreservices/1390584-uckeytranslate> function to drive keyboard translation.

---

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)