Added option to disable tablet mode switch in config

This commit is contained in:
Serge
2023-07-05 14:55:52 +02:00
parent 5f1c926527
commit 2d4e794084
2 changed files with 2 additions and 1 deletions

View File

@@ -342,6 +342,7 @@ namespace GHelper.Input
public static void TabletMode()
{
if (AppConfig.Is("disable_tablet")) return;
bool touchpadState = GetTouchpadState();
bool tabletState = Program.acpi.DeviceGet(AsusACPI.TabletState) > 0;