This commit is contained in:
Serge
2024-05-11 18:42:31 +02:00
parent 5b383b2884
commit a0c15e6732
5 changed files with 53 additions and 0 deletions

View File

@@ -544,6 +544,11 @@ namespace GHelper.Input
case "controller":
Program.settingsForm.BeginInvoke(Program.settingsForm.allyControl.ToggleModeHotkey);
break;
case "touchscreen":
var touchscreenStatus = TouchscreenHelper.ToggleTouchscreen();
if (touchscreenStatus is not null)
Program.toast.RunToast(Properties.Strings.Touchscreen + " " + ((bool)touchscreenStatus ? Properties.Strings.On : Properties.Strings.Off), ToastIcon.Touchpad);
break;
default:
break;
}