robreuss / VirtualGameController

Software-based game controllers for iOS, tvOS, OS X and watchOS in Swift 4.2.
MIT License
462 stars 44 forks source link

MFi Controllers Not Found When VgcManager Initialised post launch #27

Closed ghost closed 5 years ago

ghost commented 8 years ago

Because the app relies up listening for the GCControllerDidConnectNotification to add GCControllers to the array of VgcControllers if it's initialised post launch the notifications are missed and the controllers aren't found until they're disconnected and reconnected.

robreuss commented 8 years ago

Interesting. I guess I could scan GCController.controllers array when VGC is initialized to see if there are already controllers setup there. Does that sound like the right fix for what you are describing?