Contents

GCRacingWheel.DidConnectMessage

A message that posts after a racing wheel accessory connects to the device.

Declaration

struct DidConnectMessage

Overview

Use the .didConnect identifier with NotificationCenter to listen for this message.

let observation = NotificationCenter.default.addObserver(of: GCRacingWheel.self, for: .didConnect) { message in
   let racingWheel = message.racingWheel
}

Connections of controller accessories will be reflected in the controllers array of the GCController class when the message posts.

Topics

Initializers

Instance Properties