<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameController",
  "identifier" : "/documentation/GameController/GCStylusDidConnectNotification",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Game Controller"
    ],
    "preciseIdentifier" : "c:@GCStylusDidConnectNotification"
  },
  "title" : "GCStylusDidConnectNotification"
}
-->

# GCStylusDidConnectNotification

A notification that posts after a stylus accessory connects to the device.

```
extern NSString * const GCStylusDidConnectNotification;
```

## Discussion

Use this constant with `NSNotificationCenter` to listen for stylus
connection events.

Connections of stylus accessories will be reflected in the `styli` array
of the `GCStylus` class when the notification posts.

The `object` property of the notification will contain the `GCStylus` that
was connected.

---

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)