Skip to content

Commit 4deb18e

Browse files
committed
style: cleanup & reformat
1 parent d57dc4b commit 4deb18e

File tree

7 files changed

+12
-11
lines changed

7 files changed

+12
-11
lines changed

CrossLaunch/CrossLaunch.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
<IncludeAssets Condition="'$(Configuration)' != 'Debug'">None</IncludeAssets>
4545
<PrivateAssets Condition="'$(Configuration)' != 'Debug'">All</PrivateAssets>
4646
</PackageReference>
47-
<PackageReference Include="InputSimulator" Version="1.0.4" />
47+
<PackageReference Include="InputSimulator" Version="1.0.4"/>
4848
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0"/>
49-
<PackageReference Include="SharpDX.XInput" Version="4.2.0" />
49+
<PackageReference Include="SharpDX.XInput" Version="4.2.0"/>
5050
</ItemGroup>
5151

5252
<ItemGroup>

CrossLaunch/Features/Gamepad/GamepadHandler.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Threading;
2-
using System.Threading.Tasks;
32
using WindowsInput;
43
using WindowsInput.Native;
54

CrossLaunch/Features/Gamepad/GamepadInput.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ namespace CrossLaunch.Features.Gamepad;
88
public class GamepadInput
99
{
1010
private readonly Controller _controller = new(UserIndex.One);
11-
private GamepadButtonFlags _previousButtons; //For fixing holding the button down
12-
private bool _isRunning;
1311
private readonly int _pollingInterval;
12+
private bool _isRunning;
13+
private GamepadButtonFlags _previousButtons; //For fixing holding the button down
1414

1515
public GamepadInput(int pollingInterval = 50)
1616
{

CrossLaunch/GameSelection.axaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
<ItemsControl.ItemTemplate>
2323
<DataTemplate DataType="crossLaunch:GameItemVm">
2424
<Border CornerRadius="10" Background="#444444" BorderThickness="4" Padding="10" Margin="20"
25-
KeyDown="OnKeyDown" PointerPressed="OnPointerPressed" Tag="{Binding Identifier}" IsHitTestVisible="True" Width="450"
25+
KeyDown="OnKeyDown" PointerPressed="OnPointerPressed" Tag="{Binding Identifier}"
26+
IsHitTestVisible="True" Width="450"
2627
Height="300" Focusable="True" TabIndex="0" Name="{Binding Identifier}">
2728
<Border.Styles>
2829
<Style Selector="Border:pointerover, Border:focus-visible">

CrossLaunch/MainWindow.axaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
</ExperimentalAcrylicBorder>
2424
<Grid RowDefinitions="Auto,*" Margin="20">
2525
<StackPanel Grid.Row="0" Orientation="Horizontal" Margin="20,0,0,0" VerticalAlignment="Center">
26-
<Image Source="Assets/Images/CrossLaunch-Logo7_80x80.png" Width="80" Height="80" ></Image>
27-
<TextBlock FontWeight="Bold" FontSize="36" TextAlignment="Center" Padding="20" Foreground="White"
26+
<Image Source="Assets/Images/CrossLaunch-Logo7_80x80.png" Width="80" Height="80" />
27+
<TextBlock FontWeight="Bold" FontSize="36" TextAlignment="Center" Padding="20" Foreground="White"
2828
FontFamily="">
2929
CrossLaunch
3030
</TextBlock>

CrossLaunch/Program.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Threading;
3-
using System.Threading.Tasks;
43
using Avalonia;
54
using Avalonia.Controls.ApplicationLifetimes;
65
using CrossLaunch.Features.Gamepad;
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
namespace CrossLaunch.Utils;
1+
using System.Text.Json;
2+
3+
namespace CrossLaunch.Utils;
24

35
public class CustomJsonSerializerOptions
46
{
5-
public static System.Text.Json.JsonSerializerOptions Default =>
7+
public static JsonSerializerOptions Default =>
68
new() { PropertyNameCaseInsensitive = true, TypeInfoResolver = CustomJsonSerializerContext.Default };
79
}

0 commit comments

Comments
 (0)