Skip to content

Commit

Permalink
Added support for Stadia Gamepad wired/Bluetooth
Browse files Browse the repository at this point in the history
  • Loading branch information
picosonic committed Jan 18, 2023
1 parent d4898f4 commit c423ce6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -777,11 +777,12 @@ function gamepadscan()
gs.gamepadaxes[3]=5; // cam up/down axis
}
else
if (gamepads[padid].id=="057e-2009-Pro Controller")
if ((gamepads[padid].id=="057e-2009-Pro Controller") || (gamepads[padid].id=="18d1-9400-Google Inc. Stadia Controller") || (gamepads[padid].id=="18d1-9400-StadiaZYSW-7992"))
{
// Nintendo Switch Pro Controller
// 8Bitdo SF30 Pro GamePad (Switch mode)
// 8Bitdo GBros. Adapter (Switch mode)
// Google Stadia Controller (Wired and Bluetooth)
gs.gamepadbuttons[0]=-1; // left (left) d-left
gs.gamepadbuttons[1]=-1; // right (left) d-right
gs.gamepadbuttons[2]=-1; // top (left) d-up
Expand Down

0 comments on commit c423ce6

Please sign in to comment.