xamarin / xamarin-macios

.NET for iOS, Mac Catalyst, macOS, and tvOS provide open-source bindings of the Apple SDKs for use with .NET managed languages such as C#
Other
2.45k stars 511 forks source link

Xcode14 GameController.GCPhysicalInputElementCollection Strange Types #15725

Open tj-devel709 opened 2 years ago

tj-devel709 commented 2 years ago

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.

dalexsoto commented 2 years ago

This needs a sample to get it right