This commit is contained in:
Serge
2024-03-12 21:22:05 +01:00
parent 37fe17ecea
commit e784b9475c
2 changed files with 7 additions and 2 deletions

View File

@@ -413,6 +413,11 @@ public static class AppConfig
return Is("no_overdrive") || IsOLED();
}
public static bool IsNoSleepEvent()
{
return ContainsModel("FX505");
}
public static bool IsStrix()
{
return ContainsModel("Strix") || ContainsModel("Scar") || ContainsModel("G703G");

View File

@@ -689,8 +689,8 @@ namespace GHelper.Input
return;
case 51: // Fn+F6 on old TUFs
case 53: // Fn+F6 on GA-502DU model
SleepEvent();
//NativeMethods.TurnOffScreen();
if (AppConfig.IsNoSleepEvent()) NativeMethods.TurnOffScreen();
else SleepEvent();
return;
}
}