Created
March 13, 2026 15:45
-
-
Save Alia5/c353b2aaa070ee0233c5fddead8878df to your computer and use it in GitHub Desktop.
Apply Steam Input community layout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const tryIndices = [0, 1, 2, 3] | |
| let controllerIndex = 0 | |
| for (const i of tryIndices) { | |
| const config = await SteamClient.Input.GetConfigForAppAndController(appId, i) | |
| if (config?.bConfigurationEnabled) { | |
| controllerIndex = i | |
| break | |
| } | |
| } | |
| await SteamClient.Apps.DownloadWorkshopItem(241100, workshopItemId, true) | |
| SteamClient.Input.SetSelectedConfigForApp(appId, controllerIndex, `workshop://${workshopItemId}`, false, true) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment