xamarin-macios
xamarin-macios copied to clipboard
Xcode14 GameController.GCPhysicalInputElementCollection Strange Types
The Xcode14 header files list the GCPhysicalInputElementCollection as such:
@interface GCPhysicalInputElementCollection<Key: NSString*, Element: id<GCPhysicalInputElement>> : NSObject <NSFastEnumeration>
However, the 'Key's in the generic that are used in the file (GCPhysicalInputElementName, GCButtonElementName, and GCDirectionPadElementName) are all empty protocols that inherit from 'GCPhysicalInputElementName'. These empty protocols do not inherit or have a base class of NSString.
The 'id's in the generic that are used in the file (IGCPhysicalInputElement, IGCButtonElement, IGCAxisElement, IGCSwitchElement, and IGCDirectionPadElement) all inherit from GCPhysicalInputElement and are non-empty and seem more valid.
Because of these Keys not being NSStrings, we will leave the GCPhysicalInputElementCollection class and the instances of it commented out until we can dig deeper and build a sample/test for this.
This needs a sample to get it right