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

Game Pauser shortcut #153

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
7 changes: 7 additions & 0 deletions SteamController/Profiles/Default/GuideShortcutsProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,17 @@ protected override bool SteamShortcuts(Context c)
c.Keyboard.KeyPress(VirtualKeyCode.LWIN, VirtualKeyCode.VK_D);
}

// This is "[" + "]" on a US keyboard, the default shortcut for the Game Pauser program on steam
if (c.Steam.BtnLeftStickPress.Pressed())
{
c.Keyboard.KeyPress(new VirtualKeyCode[]{VirtualKeyCode.OEM_4,VirtualKeyCode.OEM_6});
}

// Additional binding for tool hotkeys (Lossless Fullscreen is nice)
if (c.Steam.BtnDpadUp.Pressed())
{
c.Keyboard.KeyPress(new VirtualKeyCode[] { VirtualKeyCode.LCONTROL, VirtualKeyCode.LMENU }, VirtualKeyCode.VK_U);

}

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 @@ -14,6 +14,7 @@
| 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 |
| STEAM + Left Stick Press | [ + ] | [ + ] | [ + ] | | [ + ] |
| STEAM + X | Toggle Keyboard | Toggle Keyboard | Toggle Keyboard | | Toggle Keyboard |
| STEAM + L1 | Toggle Magnify | Toggle Magnify | Toggle Magnify | | Toggle Magnify |
| STEAM + R1 | Screenshot | Screenshot | Screenshot | | Screenshot |
Expand Down
17 changes: 15 additions & 2 deletions docs/steam-controller.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,20 @@ To configure the hotkey in Lossless Scaling:
1. Verify that the hotkey was set to "CTRL + ALT + U"
1. Close the settings dialog

## 7. Uninstall
## 7. Pause (Almost) Any Game

Some games to not provide a pause function. It is often possible to suspend those programs using an app such as Game Pauser by Jase (https://madebyjase.com/game-pauser/). Steam Controller has been configured with a shortcut for that application.

To configure the program:

1. Install and launch Game Pauser by Jase
2. Open Settings then Advanced User Customization
3. Scroll down to the Custom Pausable Applications List and add any folders you run games from to the line AdditionalPausableFilepathInclusions. For example, I added "C:\\Games" and "C:\\XboxGames" as I install games in those folders in addition to steam.
4. Under Keyboard Settings, ensure the two keycodes are 0xDB and 0xDD (this corresponds to '[' and ']')
5. Close the settings and leave the app running in the background. When it is running, "STEAM + Left Stick" should pause any running games


## 8. Uninstall

Since `Steam Controller` changes Steam you need to follow those steps to properly uninstall the app:

Expand All @@ -152,7 +165,7 @@ Since `Steam Controller` changes Steam you need to follow those steps to properl
3. Now, select `Ignore Steam` to remove `Steam Controller` from Steam
4. Next go to `Steam > Settings > Controller` and revert all changes made to `Desktop configuration`

## 8. Managed configs
## 9. Managed configs

The `Steam Controller` will manage default steam controller configs
and install controller templates to ease controller management.
Expand Down