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

SteamOS: fixes & official controller layout #194

Merged
merged 3 commits into from
Oct 31, 2023

Conversation

AAGaming00
Copy link
Contributor

@AAGaming00 AAGaming00 commented Oct 28, 2023

When running under game mode, if Vesktop can successfully determine its AppID, this will prompt the user to install a steam input layout that allows you to control Discord using the Steam Deck controls.

Also, when Vesktop detects it is running under game mode (SteamOS = 1 && SteamGamepadUI = 1), apply a steamos-specific keyboard fix, and adjust the splash to fit the UI scaling better.

There's a lot of slightly confusing code, and some stuff is in places i couldn't fully decide on on my own, so definitely open to suggestions.

Additionally this adds electron-builder-sandbox-fix to the build process to fix an AppImage-specific crash that occurs on SteamOS and other distros.

The layout:
layout

@zt64
Copy link
Contributor

zt64 commented Oct 28, 2023

insane

@AAGaming00
Copy link
Contributor Author

you are more insane than this pr

src/main/utils/sleep.ts Outdated Show resolved Hide resolved
src/main/utils/steamOS.ts Outdated Show resolved Hide resolved
src/shared/browserWinProperties.ts Outdated Show resolved Hide resolved
@AAGaming00
Copy link
Contributor Author

WHY DID GITHUB REBASE DELETE MY PACKAGE.JSON CHANGE

TERRIBLE

@Vendicated
Copy link
Member

As a side effect, this fixes #91

@AAGaming00
Copy link
Contributor Author

wait no it didnt what

@AAGaming00

This comment was marked as outdated.

@Vendicated Vendicated changed the title Add support for applying an official controller layout on SteamOS, also fix Vesktop crashing in game mode SteamOS: fixes & official controller layout Oct 31, 2023
@Vendicated Vendicated merged commit 1e9c70e into Vencord:main Oct 31, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants