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