Skip to content

Instantly share code, notes, and snippets.

@Alia5
Created March 13, 2026 15:45
Show Gist options
  • Select an option

  • Save Alia5/c353b2aaa070ee0233c5fddead8878df to your computer and use it in GitHub Desktop.

Select an option

Save Alia5/c353b2aaa070ee0233c5fddead8878df to your computer and use it in GitHub Desktop.
Apply Steam Input community layout
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