I am trying to use Objective-C in Codea to add controller support to my game. However, whenever I write this line of code:
objc.NSNotificationCenter:addObserver_(objc.GCController, objc.selector(“startWirelessControllerDiscoveryWithCompletionHandler_”), objc.class(“GCControllerDidConnectNotification”), objc.GCController)
the game completely crashes. I don’t know what to do about this!