The Switch Pro controller doesn't fully work with HK (shoulder buttons are broken), apparently bc the game uses an outdated version of SDL controller mappings. We can help it along by providing mappings from the community in an environment variable.
- Install the GOG version of Hollow Knight, e.g. from the Internet Archive.
- Edit
~/GOG Games/Hollow Knight/start.sh
:export SDL_GAMECONTROLLERCONFIG="050000007e0500000920000001800000,Nintendo Switch Pro Controller,a:b0,b:b1,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b11,leftshoulder:b5,leftstick:b12,lefttrigger:b7,leftx:a0,lefty:a1,misc1:b4,rightshoulder:b6,rightstick:b13,righttrigger:b8,rightx:a2,righty:a3,start:b10,x:b3,y:b2,platform:Linux," ./"Hollow Knight" -force-opengl
Note the -force-opengl
which was necessary for me bc on my hardware t