Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

Hi hi! On Linux, my Stadia controller (connected via USB) is not recognized.

It does work on https://gamepad-tester.com/ which reports: Google Stadia Controller 18d1-9400-Google LLC Stadia Controller rev. A

Maybe rebuilding using a newer version of Unity and/or SDL would fix this? I’m happy to test a debug build.

Doing some searching I found https://gist.github.com/sim2kid/0fdf296e9654bbc0267ea530642d7fa9

Thanks for the great game!

I found a workaround

Adding the following to my ~/.bashrc file

export SDL_GAMECONTROLLERCONFIG="03000000d11800000094000011010000,Stadia Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a4,rightx:a2,righty:a3,start:b7,x:b2,y:b3,"

That’s from https://github.com/libsdl-org/SDL/blob/98cc9cf208b6dff44b5d40d01ceb200f21f51a2a/src/joystick/SDL_gamecontrollerdb.h#L550 as inspired by https://wiki.archlinux.org/title/Gamepad#Using_hid-nintendo_with_SDL2_games