Hi. I have same issue. I'm using Electron 26.2.1.0 as any above 26 doesn't work. It's not only Steam Deck but also Windows and Steam. No direct input is recognised no Xbox Pad/Dualsense/any pad and Steam Deck controllers.
I'm using Phaser 2 default input + Electron. I'm forced to stick with build 26 to make it works.
Any new posts on Electron github are straight removed with explanation:
"The Electron team is small and generally doesn't have enough bandwidth to triage third-party code. Please file an issue with the specific program using Electron
Because we treat our issues list as the team's backlog, we close issues that are questions since they don't represent a task needing to be completed. For most questions about Electron there are a lot of options."
I've been trying to figure this one out all day. It seems like the gamepad api works only very occasionally. It happened to work for me the first time I tried it, so naturally this left me scratching my head about what I did that caused it to break. In the end it suddenly started working again and right after a I restarted the app it broke again.
Not sure what this means but hopefully the fact that it works occasionally could be of help.
For me never works above Electeon v 26. The solution is to disable steam input then it works fine.
Did U try it?
I tried about everything haha. If you're talking about windows, I managed to get my DS2 to work once I got the steam overlay working. These two flags caused the overlay to start working for me.
app.commandLine.appendSwitch("in-process-gpu");
app.commandLine.appendSwitch("disable-direct-composition");
How these to switches are related to steam input... I don't know.
But it seems like even mouse input (through the DS2 touchpad) is broken without this. So my guess is that the steam overlay is somehow required for steam input to work.
As for the steam deck, disabling steam input there doesn't work. I don't think you can even disable steam input since the UI seems to indicate that steam input is required for both the steam controller and remote play.
I have those lines
app.commandLine.appendSwitch("in-process-gpu");
app.commandLine.appendSwitch("disable-direct-composition");
but controller still doesn't work once Steam Input is enabled.
On Steam Deck there's no issue with electron if work's without Proton nativeley.
I had this exact same problem. I sent in a Steam ticket about this, along with other minor issues I was having.
The response I got back was essentially that it's "an issue with Electron due to older versions working." They did say that it's possible that they could update Proton to improve compatibility, but since Electron is such a minor use-case runtime builder, it's not a high enough priority to allocate resources towards it.
I had to capitulate and just use the WSL (Windows Subsystem for Linux) to build Linux / Steam Deck builds. Then just add the --no-sandbox executable parameter to avoid the "Sandbox Wars" between Electron and the Steam Runtime environments causing major launch issues.
NW.js v0.95.0 (Chromium 131) running as a Windows .exe under Proton Experimental on Steam Deck (SteamOS 3.x): navigator.getGamepads() returns empty. Built-in Deck controller is not detected by the game.
Tested:
Same symptom as Electron 26+ regressions reported in this thread. Affects shipping NW.js games as Non-Steam Games on Deck.
Experiencing the same issue. Can't make my game steamdeck compatible like this :(
Looking at this thread since it is open from 2014 I don't think a solution is in progress ....
Experiencing the same issue. Can't make my game steamdeck compatible like this :(
Looking at this thread since it is open from 2014 I don't think a solution is in progress ....
Hmm it does work for me normally since September 2025. What exactly issue do u have?
I think the issue is i am launching through proton and the gamepads (including integrated steam deck gamepad) are not available in the brower
ge-proton9-26x1 2026-05proton 9.0-4x1 2026-05proton experimentalx1 2026-05
Proton version: Experimental (but also 9.0-3 and 8.0-5)
Device: Steam Deck (LCD)
Steam OS version: 3.5.19 (also 3.4.10)
Hi. We have a launcher written in Electron. After upgrading Electron to a newer version, launcher doesn't detect gamepads (including the Steam Deck built-in buttons/joysticks/etc) when running on Steam Deck while using Proton. The last version of Electron where it works is 26.6.10. While the issue is related to Electron, I don't think it can be blamed as it works fine without Proton.
It works fine in the following scenarios:
For handling gamepads we use https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API
For now we are holding off the update but eventually, we want to start using the new Electron and we might loose the Steam Deck Compatibility badge for one of our games.