Skip to content

Commit 64c3802

Browse files
committed
Hardware FN-Lock tweaks
1 parent eadf617 commit 64c3802

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

app/AppConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ public static bool IsVivoZenPro()
403403

404404
public static bool IsHardwareFnLock()
405405
{
406-
return IsVivoZenPro() || ContainsModel("GZ302EA") || ContainsModel("GA403W") || ContainsModel("GA403UM") || ContainsModel("GA403UP") || ContainsModel("GA403UH");
406+
return IsVivoZenPro() || ContainsModel("GZ302EA") || IsSlashAura();
407407
}
408408

409409
// Devices with bugged bios command to change brightness

app/Input/InputDispatcher.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,11 @@ public void Init()
100100
}
101101

102102
InitBacklightTimer();
103+
}
103104

105+
public static void InitFNLock()
106+
{
104107
if (AppConfig.IsHardwareFnLock()) HardwareFnLock(AppConfig.Is("fn_lock"));
105-
106108
}
107109

108110
public void InitBacklightTimer()

app/USB/Aura.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,8 @@ public static void Init()
281281
AsusHid.WriteInput([AsusHid.INPUT_ID, 0xD0, 0x85, 0xFF], "ProArt Init");
282282
//AsusHid.WriteInput([AsusHid.INPUT_ID, 0xD0, 0x4E], "ProArt Init");
283283
}
284+
285+
InputDispatcher.InitFNLock();
284286
}
285287

286288

0 commit comments

Comments
 (0)