mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-01-21 16:00:27 +01:00
Fix Process Kill action
This commit is contained in:
parent
6ea0329cbb
commit
3176ac09dc
|
|
@ -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())
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue