From 087a21f09f6f8a4415085aaf2c0b1a5b39342459 Mon Sep 17 00:00:00 2001 From: Alex Soto Date: Wed, 19 Nov 2025 19:20:59 -0500 Subject: [PATCH 1/2] [xcode26.2] Update GameController bindings to Xcode 26.2 Beta 2 --- src/gamecontroller.cs | 24 +++++++++++++++++++ .../Documentation.KnownFailures.txt | 4 ++++ .../MacCatalyst-GameController.todo | 2 -- .../iOS-GameController.todo | 2 -- .../macOS-GameController.todo | 2 -- .../tvOS-GameController.todo | 2 -- 6 files changed, 28 insertions(+), 8 deletions(-) delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-GameController.todo delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-GameController.todo delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/macOS-GameController.todo delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/tvOS-GameController.todo diff --git a/src/gamecontroller.cs b/src/gamecontroller.cs index 4e53039779fb..b51c39c969e7 100644 --- a/src/gamecontroller.cs +++ b/src/gamecontroller.cs @@ -3043,6 +3043,11 @@ interface GCLinearInput { [Abstract] [Export ("sources", ArgumentSemantic.Copy)] NSSet Sources { get; } + + [TV (26, 2), Mac (26, 2), iOS (26, 2), MacCatalyst (26, 2)] + [Abstract] + [NullAllowed, Export ("physicalExtents")] + IGCPhysicalInputExtents PhysicalExtents { get; } } interface IGCPhysicalInputElement { } @@ -3368,4 +3373,23 @@ partial interface NSValue { [Export ("GCPoint2Value")] GCPoint2 GCPoint2Value { get; } } + + interface IGCPhysicalInputExtents { } + + [TV (26, 2), Mac (26, 2), iOS (26, 2), MacCatalyst (26, 2)] + [Protocol] + interface GCPhysicalInputExtents { + + [Abstract] + [Export ("scaledValue")] + double ScaledValue { get; } + + [Abstract] + [Export ("minimumValue")] + double MinimumValue { get; } + + [Abstract] + [Export ("maximumValue")] + double MaximumValue { get; } + } } diff --git a/tests/cecil-tests/Documentation.KnownFailures.txt b/tests/cecil-tests/Documentation.KnownFailures.txt index 29404ad4b3a0..f4606feb0b42 100644 --- a/tests/cecil-tests/Documentation.KnownFailures.txt +++ b/tests/cecil-tests/Documentation.KnownFailures.txt @@ -21075,6 +21075,9 @@ P:FileProvider.NSFileProviderRequest.IsSystemRequest P:FileProvider.NSFileProviderRequest.RequestingExecutable P:FileProvider.NSFileProviderStringSearchRequest.DesiredNumberOfResults P:FileProvider.NSFileProviderStringSearchRequest.Query +P:Foundation.IGCPhysicalInputExtents.MaximumValue +P:Foundation.IGCPhysicalInputExtents.MinimumValue +P:Foundation.IGCPhysicalInputExtents.ScaledValue P:Foundation.INSObjectProtocol.DebugDescription P:Foundation.INSProgressReporting.Progress P:Foundation.NSArchiveReplaceEventArgs.NewObject @@ -21433,6 +21436,7 @@ P:GameController.IGCLinearInput.Analog P:GameController.IGCLinearInput.CanWrap P:GameController.IGCLinearInput.LastValueLatency P:GameController.IGCLinearInput.LastValueTimestamp +P:GameController.IGCLinearInput.PhysicalExtents P:GameController.IGCLinearInput.Sources P:GameController.IGCLinearInput.Value P:GameController.IGCLinearInput.ValueDidChangeHandler diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-GameController.todo b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-GameController.todo deleted file mode 100644 index 3b7da75153bc..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-GameController.todo +++ /dev/null @@ -1,2 +0,0 @@ -!missing-protocol! GCPhysicalInputExtents not bound -!missing-protocol-member! GCLinearInput::physicalExtents not found diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-GameController.todo b/tests/xtro-sharpie/api-annotations-dotnet/iOS-GameController.todo deleted file mode 100644 index 3b7da75153bc..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-GameController.todo +++ /dev/null @@ -1,2 +0,0 @@ -!missing-protocol! GCPhysicalInputExtents not bound -!missing-protocol-member! GCLinearInput::physicalExtents not found diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-GameController.todo b/tests/xtro-sharpie/api-annotations-dotnet/macOS-GameController.todo deleted file mode 100644 index 3b7da75153bc..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-GameController.todo +++ /dev/null @@ -1,2 +0,0 @@ -!missing-protocol! GCPhysicalInputExtents not bound -!missing-protocol-member! GCLinearInput::physicalExtents not found diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-GameController.todo b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-GameController.todo deleted file mode 100644 index 3b7da75153bc..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-GameController.todo +++ /dev/null @@ -1,2 +0,0 @@ -!missing-protocol! GCPhysicalInputExtents not bound -!missing-protocol-member! GCLinearInput::physicalExtents not found From 4de498f528d279200fb93f21b496c8f3c42b4d8e Mon Sep 17 00:00:00 2001 From: Alex Soto Date: Thu, 20 Nov 2025 09:04:30 -0500 Subject: [PATCH 2/2] Fix xtro --- src/gamecontroller.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gamecontroller.cs b/src/gamecontroller.cs index b51c39c969e7..f4f95f2fd6f4 100644 --- a/src/gamecontroller.cs +++ b/src/gamecontroller.cs @@ -3377,7 +3377,7 @@ partial interface NSValue { interface IGCPhysicalInputExtents { } [TV (26, 2), Mac (26, 2), iOS (26, 2), MacCatalyst (26, 2)] - [Protocol] + [Protocol (BackwardsCompatibleCodeGeneration = false)] interface GCPhysicalInputExtents { [Abstract]