File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed
Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 1212
1313<!-- <GenerateDocumentationFile>True</GenerateDocumentationFile>-->
1414
15- <SupportedOSPlatformVersion Condition =" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'" >12.2 </SupportedOSPlatformVersion >
15+ <SupportedOSPlatformVersion Condition =" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'" >15.0 </SupportedOSPlatformVersion >
1616 <SupportedOSPlatformVersion Condition =" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'" >15.0</SupportedOSPlatformVersion >
1717 <SupportedOSPlatformVersion Condition =" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'" >21.0</SupportedOSPlatformVersion >
1818 <SupportedOSPlatformVersion Condition =" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'" >10.0.17763.0</SupportedOSPlatformVersion >
4444 <Configurations >Release;Debug</Configurations >
4545 </PropertyGroup >
4646
47- <PropertyGroup Condition =" '$(Configuration)' == 'Debug' " >
48- <NoWarn >1701;1702;CA1416</NoWarn >
49- </PropertyGroup >
50-
5147 <ItemGroup >
5248 <PackageReference Include =" Microsoft.Maui.Controls" Version =" $(MauiVersion)" />
5349 </ItemGroup >
Original file line number Diff line number Diff line change @@ -25,7 +25,10 @@ public GameController(GCController controller)
2525 West = new ButtonValue < bool > ( this , nameof ( West ) ) ;
2626 Pause = new ButtonValue < bool > ( this , nameof ( Pause ) ) ;
2727
28- controller . PhysicalInputProfile . ValueDidChangeHandler += Changed ;
28+ if ( OperatingSystem . IsMacOSVersionAtLeast ( 16 ) )
29+ {
30+ controller . PhysicalInputProfile . ValueDidChangeHandler += Changed ;
31+ }
2932 }
3033
3134 private void Changed ( GCPhysicalInputProfile gamepad , GCControllerElement element )
Original file line number Diff line number Diff line change @@ -28,8 +28,11 @@ public GameController(GCController controller)
2828 East = new ButtonValue < bool > ( this , nameof ( East ) ) ;
2929 West = new ButtonValue < bool > ( this , nameof ( West ) ) ;
3030 Pause = new ButtonValue < bool > ( this , nameof ( Pause ) ) ;
31-
32- controller . PhysicalInputProfile . ValueDidChangeHandler += Changed ;
31+
32+ if ( OperatingSystem . IsIOSVersionAtLeast ( 16 ) )
33+ {
34+ controller . PhysicalInputProfile . ValueDidChangeHandler += Changed ;
35+ }
3336 }
3437
3538 private void Changed ( GCPhysicalInputProfile gamepad , GCControllerElement element )
You can’t perform that action at this time.
0 commit comments