Fix Process Kill action

This commit is contained in:
Kamil Trzciński 2022-11-29 00:12:20 +01:00
parent 6ea0329cbb
commit 3176ac09dc

View file

@ -44,19 +44,19 @@ namespace SteamController.Profiles
c.Keyboard.KeyPress(VirtualKeyCode.RETURN);
}
if (c.Steam.BtnB.HoldOnce(HoldForKill, ShortcutConsumed))
{
// We want to KILL only the process that
// was foreground last time
Helpers.ForegroundProcess.Kill(true);
}
else if (c.Steam.BtnB.HoldOnce(HoldForClose, ShortcutConsumed))
if (c.Steam.BtnB.HoldOnce(HoldForClose, ShortcutConsumed))
{
Helpers.ForegroundProcess.Store();
// close application
c.Keyboard.KeyPress(VirtualKeyCode.LMENU, VirtualKeyCode.F4);
}
else if (c.Steam.BtnB.HoldChain(HoldForKill, ShortcutConsumed, "KillProcess"))
{
// We want to KILL only the process that
// was foreground last time
Helpers.ForegroundProcess.Kill(true);
}
if (c.Steam.BtnX.Pressed())
{