From 3176ac09dc6d0ff6cb80a34d2b7616741ab8bd70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Trzci=C5=84ski?= Date: Tue, 29 Nov 2022 00:12:20 +0100 Subject: [PATCH] Fix `Process Kill` action --- .../Profiles/DefaultGuideShortcutsProfile.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/SteamController/Profiles/DefaultGuideShortcutsProfile.cs b/SteamController/Profiles/DefaultGuideShortcutsProfile.cs index cd02af3..6eea63f 100644 --- a/SteamController/Profiles/DefaultGuideShortcutsProfile.cs +++ b/SteamController/Profiles/DefaultGuideShortcutsProfile.cs @@ -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()) {