From d807486711742a54a46e222c056e1a836f603279 Mon Sep 17 00:00:00 2001 From: Angel Toloza Date: Thu, 3 Aug 2023 03:57:46 -0400 Subject: [PATCH 1/2] Microsoft Store Apps in FullScreen --- SteamController/Devices/KeyboardController.cs | 9 +++++++++ SteamController/Profiles/Default/ShortcutsProfile.cs | 10 +++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/SteamController/Devices/KeyboardController.cs b/SteamController/Devices/KeyboardController.cs index 13baeb5..61e41c9 100644 --- a/SteamController/Devices/KeyboardController.cs +++ b/SteamController/Devices/KeyboardController.cs @@ -126,6 +126,15 @@ namespace SteamController.Devices { Safe(() => simulator.Keyboard.KeyPress(keyCodes)); } + public void KeyPressDown(params VirtualKeyCode[] keyCodes) + { + Safe(() => simulator.Keyboard.KeyDown(keyCodes)); + } + + public void KeyPressUp(params VirtualKeyCode[] keyCodes) + { + Safe(() => simulator.Keyboard.KeyUp(keyCodes)); + } public void KeyPress(VirtualKeyCode modifierKey, params VirtualKeyCode[] keyCodes) { diff --git a/SteamController/Profiles/Default/ShortcutsProfile.cs b/SteamController/Profiles/Default/ShortcutsProfile.cs index ea82d20..88d0b25 100644 --- a/SteamController/Profiles/Default/ShortcutsProfile.cs +++ b/SteamController/Profiles/Default/ShortcutsProfile.cs @@ -59,7 +59,15 @@ namespace SteamController.Profiles.Default return true; } - if (c.Steam.BtnMenu.Pressed()) + if (c.Steam.BtnMenu.HoldOnce(HoldToSwitchProfile, ShortcutConsumed)) + { + c.Keyboard.KeyPressDown(VirtualKeyCode.LWIN); + c.Keyboard.KeyPress(VirtualKeyCode.LSHIFT, VirtualKeyCode.RETURN); + c.Keyboard.KeyPressUp(VirtualKeyCode.LWIN); + return true; + } + + else if (c.Steam.BtnMenu.Pressed()) { c.Keyboard.KeyPress(VirtualKeyCode.F11); return true; From 0e2f9fbf0d86a1b9ff526e37ce31fe4b89d1ff5a Mon Sep 17 00:00:00 2001 From: Angel Toloza Date: Thu, 3 Aug 2023 04:03:02 -0400 Subject: [PATCH 2/2] shortcut update. --- docs/shortcuts.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/shortcuts.md b/docs/shortcuts.md index 44d82e7..f823508 100644 --- a/docs/shortcuts.md +++ b/docs/shortcuts.md @@ -10,6 +10,7 @@ | STEAM + 3 dots | CTRL + SHIFT + ESCAPE | CTRL + SHIFT + ESCAPE | CTRL + SHIFT + ESCAPE | CTRL + SHIFT + ESCAPE | CTRL + SHIFT + ESCAPE | | STEAM + Options | WIN + TAB | WIN + TAB | WIN + TAB | WIN + TAB | WIN + TAB | | STEAM + Menu | F11 | F11 | F11 | F11 | F11 | +| STEAM + Menu (hold for 1s) | WIN + LSHIFT + ENTER | WIN + LSHIFT + ENTER | WIN + LSHIFT + ENTER | WIN + LSHIFT + ENTER | WIN + LSHIFT + ENTER | | STEAM + A | RETURN | RETURN | RETURN | | RETURN | | STEAM + B (hold for 1s) | ALT + F4 | ALT + F4 | ALT + F4 | | ALT + F4 | | STEAM + B (hold for 3s) | Kill active process | Kill active process | Kill active process | | Kill active process |