mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Double WMI and hotkey fix for ancient models https://github.com/seerge/g-helper/issues/2081
This commit is contained in:
@@ -399,11 +399,17 @@ public static class AppConfig
|
|||||||
return (ContainsModel("G614JV") || ContainsModel("G614JZ") || ContainsModel("G512LI") || ContainsModel("G513R") || ContainsModel("G713PV") || ContainsModel("G513IE") || ContainsModel("G713RC") || ContainsModel("G513QM") || ContainsModel("G531G")) && !Is("per_key_rgb");
|
return (ContainsModel("G614JV") || ContainsModel("G614JZ") || ContainsModel("G512LI") || ContainsModel("G513R") || ContainsModel("G713PV") || ContainsModel("G513IE") || ContainsModel("G713RC") || ContainsModel("G513QM") || ContainsModel("G531G")) && !Is("per_key_rgb");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static bool IsNoAirplaneMode()
|
public static bool IsNoAirplaneMode()
|
||||||
{
|
{
|
||||||
return ContainsModel("FX506");
|
return ContainsModel("FX506");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static bool NoWMI()
|
||||||
|
{
|
||||||
|
return ContainsModel("GL704G");
|
||||||
|
}
|
||||||
|
|
||||||
public static bool IsNoDirectRGB()
|
public static bool IsNoDirectRGB()
|
||||||
{
|
{
|
||||||
return ContainsModel("GA503") || ContainsModel("G533Q");
|
return ContainsModel("GA503") || ContainsModel("G533Q");
|
||||||
|
|||||||
@@ -890,6 +890,7 @@ namespace GHelper.Input
|
|||||||
if (e.NewEvent is null) return;
|
if (e.NewEvent is null) return;
|
||||||
int EventID = int.Parse(e.NewEvent["EventID"].ToString());
|
int EventID = int.Parse(e.NewEvent["EventID"].ToString());
|
||||||
Logger.WriteLine("WMI event " + EventID);
|
Logger.WriteLine("WMI event " + EventID);
|
||||||
|
if (AppConfig.NoWMI()) return;
|
||||||
HandleEvent(EventID);
|
HandleEvent(EventID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user