Skip to content

Instantly share code, notes, and snippets.

View smathles's full-sized avatar
🍞

Cameron Smith smathles

🍞
View GitHub Profile
@jonfk
jonfk / hollow_knight_fix_dualsense.txt
Last active July 8, 2024 00:19
Fix to use dualsense controller in hollow knight on linux
# This fixes the issue of swapped buttons and Triggers in the dualsense controller opening the pause menu
# The issue is caused by the SDL version used by hollow knight not recognizing the dualsense controller and
# mapping buttons properly. It is also not helped by steam input not disabling the native controller support
# when used in hollow knight. The issue cannot be fixed by simple mapping in steam input.
# Disable Steam Input
# Set the following as launch option
SDL_GAMECONTROLLERCONFIG="050000004c050000e60c000000810000,Sony DualSense ,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,platform:Linux," %command%