Skip to content

Commit

Permalink
Added detection for HP abomination nefarius/ViGEmBus#99
Browse files Browse the repository at this point in the history
  • Loading branch information
nefarius committed Jan 31, 2022
1 parent ef862b2 commit 3e11cc9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ public static class Constants

public const string ViGemBusVersion1_16HardwareId = @"Nefarius\ViGEmBus\Gen1";

public const string ViGEmBusHPForkHardwareId = @"SWC\HPIC0004_ViGEmBus";

public static Version ViGEmBusVersionLatest = new("1.17.333.0");

public static Guid ViGEmBusGen1InterfaceGuid = new("{96E42B22-F5E9-42F8-B043-ED0F932F014F}");
Expand Down
21 changes: 21 additions & 0 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,32 @@ private async void MainWindow_OnLoaded(object sender, RoutedEventArgs e)
catch { }
}

//
// Look for HP Fork of ViGEmBus (v1.14.x) virtual device
//
if (Devcon.FindInDeviceClassByHardwareId(Constants.SystemDeviceClassGuid,
Constants.ViGEmBusHPForkHardwareId))
{
var tile = new ResultTile
{
Title = "HP Fork of ViGEmBus Driver found"
};

tile.Clicked += HPForkViGEmBusOnClicked;

ResultsPanel.Children.Add(tile);
}

if (ResultsPanel.Children.Count == 0)
await this.ShowMessageAsync("All good",
"Congratulations, seems like this system is free of any known problematic legacy drivers!");
}

private void HPForkViGEmBusOnClicked()
{
Process.Start(@"https://github.com/ViGEm/ViGEmBus/issues/99");
}

private void ViGEmBusGen1OutdatedOnClicked()
{
Process.Start(@"https://github.com/ViGEm/ViGEmBus/releases/latest");
Expand Down

0 comments on commit 3e11cc9

Please sign in to comment.