Dualsense with old games issues

Hello community
i have a bit of a problem that i have no fix for although i searched alot for it

i have a dualsense controller but
i have some old games that do not work with dualsense it needs to read the input as xbox360 or dinput for example batman arkham city doesn’t read daulsense input and i need to emulate the input to x360 to work in the game

same for blasphemous

so is there a line that i can use to put in the launch option to make

1- make the game read the controller as the only option
2- emulate my dualsense to make it be read as x360 or dinput

this was being done automatically by steam input so i didn’t have to worry about the games that i have on steam but the games that i have on epicgames or GOG requires some effort and i searched alot for a solution but the only solution i found is not maintained anymore

and i do hope in the future that someone can make steaminput like for linux users outside of steam itself

I did that before on Windows.

On linux, xboxdrv seem to be enough.

https://wiki.archlinux.org/title/Gamepad#Control_Mapping_(Xbox)

A one line would probably work too. Gamepad - ArchWiki


Here is what I used before on Windows https://joytokey.net/en/

There is an outdated package for a linux version AUR (en) - joy2key


Just found one that’s recent, compatible with wayland and written in rust.


Auto single command. You would only need to have it initialize on OS boot or execute it everytime.

 xboxdrv \
   --evdev $(find /dev/input/by-id -maxdepth 1 -name '*DualSense*-joystick' ! -name '*event*') \
   --evdev-absmap ABS_X=X1,ABS_Y=Y1,ABS_RX=X2,ABS_RY=Y2,ABS_Z=LT,ABS_RZ=RT,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y \
   --evdev-keymap BTN_SOUTH=A,BTN_EAST=B,BTN_NORTH=Y,BTN_WEST=X,BTN_START=start,BTN_SELECT=back,BTN_MODE=guide,BTN_TL=LB,BTN_TR=RB,BTN_TL2=LT,BTN_TR2=RT,BTN_THUMBL=TL,BTN_THUMBR=TR \
   --axismap -y1=y1,-y2=y2 \
   --mimic-xpad --silent --quiet --detach --daemon --dbus session

i’m not an experienced user

a simple line to make the input conversion in the launch option of the game would be better

and also i wanted a line to make the game ignore keyboard and mouse a game like blasphemous works like that

and i use DS4windows on windows to make my dualsense be emulated to x360 if needed
and Hidhide to hide the input that i don’t need to make the game recognize only one input
that is why i asked for 2 lines one for controller emulation and one for hiding unneeded input

if there is no simpler way for a beginner like me i will try do the auto initialize command you just shared

Thanks

Also that Makima seems promising maybe that is the steam input emulator but in a manual way will give it a try when i have the time

Sure.

Check the blacklist repo, it might help, or at least give guidance in how reach what you want.

You can try asking @ptr1337 to add these to cachyos.

1 Like