Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Microsoft store apps in fullscreen (Shortcut) #138

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions SteamController/Devices/KeyboardController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,15 @@ public void KeyPress(params VirtualKeyCode[] keyCodes)
{
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)
{
Expand Down
10 changes: 9 additions & 1 deletion SteamController/Profiles/Default/ShortcutsProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,15 @@ protected virtual bool SteamShortcuts(Context c)
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;
Expand Down
1 change: 1 addition & 0 deletions docs/shortcuts.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down