Static GCControllerUserCustomizationsDidChangeNotification

Source
pub unsafe static GCControllerUserCustomizationsDidChangeNotification: &'static NSString
Available on crate feature GCController only.
Expand description

Use this constant with NSNotificationCenter to listen to controller user customization events.

When a user customizes the button mappings or other settings of a controller this notification will be posted. This is a good time to swap out UI to match the new user settings. Users can modify game controller settings through the Settings app on iOS, tvOS, and macOS.

The ‘object’ property of the notification will contain the GCController that was customized. For example:

  • (void)controllerDidConnect:(NSNotification *)note {

GCController *controller = note.object;

…. }

See: NSNotificationCenter

See: GCController.controllers

See also Apple’s documentation