Skip to content

Commit f503310

Browse files
committed
update deps
1 parent d8859fc commit f503310

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

Directory.Build.props

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
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

src/InputDisplay/InputDisplay.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
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>

src/InputDisplay/Inputs/SOCD.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)