Skip to content

Instantly share code, notes, and snippets.

@mesmere
Last active July 21, 2024 21:14
Show Gist options
  • Select an option

  • Save mesmere/0af80fc1773f21284aaef89578c25359 to your computer and use it in GitHub Desktop.

Select an option

Save mesmere/0af80fc1773f21284aaef89578c25359 to your computer and use it in GitHub Desktop.

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.

  1. Install the GOG version of Hollow Knight, e.g. from the Internet Archive.
  2. 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 the default Vulkan rendering gave severe rendering bugs after the Hornet fight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment