pub unsafe static GCControllerDidConnectNotification: &'static NSStringAvailable on crate feature
GCController only.Expand description
Use these constants with NSNotificationCenter to listen to connection and disconnection events.
Use GCControllerDidConnectNotification for observing connections of controllers. Use GCControllerDidDisconnectNotification for observing disconnections of controllers.
Connections and disconnections of controllers will also be reflected in the controllers array of the GCController class.
The ‘object’ property of the notification will contain the GCController that was connected or disconnected. For example:
- (void)controllerDidConnect:(NSNotification *)note {
GCController *controller = note.object;
…. }
See: NSNotificationCenter
See: GCController.controllers
See also Apple’s documentation