Skip to content

Gamepad not detected when using Steam Input #45989

Open
@Armaldio

Description

@Armaldio

Preflight Checklist

Electron Version

35.0.1

What operating system(s) are you using?

Windows

Operating System Version

Windows 11 23H2

What arch are you using?

x64

Last Known Working Electron version

26.6.10

Expected Behavior

Gamepads should be detected when using Steam Input

Actual Behavior

Gamepad work fine outside of steam, but when the game is launched through Steam with Steam Input enabled, no keys are detected
It worked fine up to v26

Testcase Gist URL

https://github.com/Armaldio/electron-steam-input-bug

Additional Information

Related issue: #45732
Demo:

electron-steam-input-bug1.mp4

Instructions to reproduce:

  • Build for both v26 & v35 using npm run build & npm run build:26
  • Add both exes to Steam as non-steam games
  • Be sure to have Steam Input enabled
  • Start both exe and try interacting with the app with a gamepad
  • Notice how it works with v26 but not with v35

Diff code added on top of electron quick start: Armaldio/electron-steam-input-bug@c221df1

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    👍 Does Not Block Stable

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      close