File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 <PropertyGroup >
33 <Authors >Lucas Teles</Authors >
44 <Company >lucasteles.dev</Company >
5- <RepositoryType >GitHub </RepositoryType >
5+ <RepositoryType >git </RepositoryType >
66 <PackageProjectUrl >https://github.com/lucasteles/InputDisplay</PackageProjectUrl >
7- <RepositoryUrl >https://github.com/lucasteles/InputDisplay</RepositoryUrl >
7+ <RepositoryUrl >https://github.com/lucasteles/InputDisplay.git </RepositoryUrl >
88 <PackageLicenseExpression >GPL-3.0</PackageLicenseExpression >
9-
109 <UseArtifactsOutput >false</UseArtifactsOutput >
1110 <PublishRelease >true</PublishRelease >
1211
Original file line number Diff line number Diff line change 3535 <ItemGroup >
3636 <PackageReference Include =" MonoGame.Framework.DesktopGL" Version =" 3.8.1.303" />
3737 <PackageReference Include =" MonoGame.Content.Builder.Task" Version =" 3.8.1.303" />
38- <PackageReference Include =" Myra" Version =" 1.5.4 " />
39- <PackageReference Include =" SonarAnalyzer.CSharp" Version =" 9.14 .0.81108 " >
38+ <PackageReference Include =" Myra" Version =" 1.5.5 " />
39+ <PackageReference Include =" SonarAnalyzer.CSharp" Version =" 9.23 .0.88079 " >
4040 <PrivateAssets >all</PrivateAssets >
4141 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
4242 </PackageReference >
Original file line number Diff line number Diff line change @@ -21,8 +21,11 @@ public static bool HasHorizontalOpposingDirections(Direction direction) =>
2121 public static bool HasVerticalOpposingDirections ( Direction direction ) =>
2222 direction . HasFlag ( Direction . Up ) && direction . HasFlag ( Direction . Down ) ;
2323
24+ public static bool HasOpposingDirections ( Direction direction ) =>
25+ HasHorizontalOpposingDirections ( direction ) || HasVerticalOpposingDirections ( direction ) ;
26+
2427 public static bool IsSingle ( SOCDMode mode , Direction dir ) =>
25- ! ( mode is SOCDMode . Bypass && ( HasHorizontalOpposingDirections ( dir ) || HasVerticalOpposingDirections ( dir ) ) ) ;
28+ ! ( mode is SOCDMode . Bypass && HasOpposingDirections ( dir ) ) ;
2629
2730 public static Direction Clean ( SOCDMode mode , Direction direction , GameInput . Stick last )
2831 {
You can’t perform that action at this time.
0 commit comments