<!--
{
  "availability" : [
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreHID",
  "identifier" : "/documentation/CoreHID/HIDUsage/init(page:usage:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core HID"
    ],
    "preciseIdentifier" : "s:7CoreHID8HIDUsageO4page5usageACs6UInt16V_AGSgtcfc"
  },
  "title" : "init(page:usage:)"
}
-->

# init(page:usage:)

Creates a HID usage page from raw page and usage values.

```
init(page: UInt16, usage: UInt16?)
```

## Discussion

Unsupported cases are returned as [`HIDUsage.generic(_:_:)`](/documentation/CoreHID/HIDUsage/generic(_:_:)).

---

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)