Skip to content

Commit

Permalink
Oups
Browse files Browse the repository at this point in the history
  • Loading branch information
Valkirie committed Mar 15, 2023
1 parent 6f19a16 commit 6d6eca8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion HandheldCompanion/Controllers/DInputController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public DInputController(Joystick joystick, PnPDetails details)
this.joystick = joystick;
UserIndex = joystick.Properties.JoystickId;

if (Details is null)
if (details is null)
return;

Details = details;
Expand Down
2 changes: 1 addition & 1 deletion HandheldCompanion/Controllers/NeptuneController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class NeptuneController : IController

public NeptuneController(PnPDetails details)
{
if (Details is null)
if (details is null)
return;

Details = details;
Expand Down
10 changes: 4 additions & 6 deletions HandheldCompanion/Controllers/XInputController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,13 @@ public XInputController(Controller controller)

var devices = DeviceManager.GetDetails(CapabilitiesEx.VendorId, CapabilitiesEx.ProductId);
Details = devices.FirstOrDefault();

if (Details is null)
return;

Details.isHooked = true;
}
else

if (Details is null)
return;

Details.isHooked = true;

InputsTimer.Tick += (sender, e) => UpdateInputs();

// UI
Expand Down

0 comments on commit 6d6eca8

Please sign in to comment.