<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSNotification/Name-swift.struct/GCMouseDidBecomeCurrent",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@GCMouseDidBecomeCurrentNotification"
  },
  "title" : "GCMouseDidBecomeCurrent"
}
-->

# GCMouseDidBecomeCurrent

A notification that posts when a mouse becomes the most recent mouse that the user connects.

```
static let GCMouseDidBecomeCurrent: NSNotification.Name
```

## Discussion

The notification object is a <doc://com.apple.documentation/documentation/GameController/GCMouse> object that represents the current mouse. For example, set the mouse input change handlers when you receive this notification.

The system posts this notification on the main actor.

---

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)