Skip to content

Instantly share code, notes, and snippets.

@DRFR0ST
Created May 23, 2020 11:41
Show Gist options
  • Save DRFR0ST/b4be3ba15384c38ccf7cb5eb1a2ade18 to your computer and use it in GitHub Desktop.
Save DRFR0ST/b4be3ba15384c38ccf7cb5eb1a2ade18 to your computer and use it in GitHub Desktop.
🕹️ Enable controller for Stadia on mobile devices. (In chrome browser)
javascript:gg = navigator.getGamepads; navigator.getGamepads = function(){ g = gg.apply(navigator); if (g[0] !== null) { g0 = {}; for(var property in g[0]){g0[property] = g[0][property]}; g0.mapping="standard"; return [g0, null, null, null]}; return g; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment