xamarin-macios icon indicating copy to clipboard operation
xamarin-macios copied to clipboard

Xcode14 GameController.GCPhysicalInputElementCollection Strange Types

Open tj-devel709 opened this issue 2 years ago • 1 comments

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.

tj-devel709 avatar Aug 22 '22 17:08 tj-devel709

This needs a sample to get it right

dalexsoto avatar Aug 29 '22 17:08 dalexsoto