Posted December 29, 2024
If you are playing on linux (eg. with lutris) and have a generic - in my case PS lookalike - controller, you can use the following command to remap the xbox controller (what the game supports).
xboxdrv --evdev /dev/input/by-id/usb-Microntek_USB_Joystick-event-joystick \
--evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y,ABS_RZ=y2,ABS_Z=x2 \
--evdev-keymap BTN_THUMB2=a,BTN_THUMB=b,BTN_TRIGGER=y,BTN_TOP=x,BTN_TOP2=lt,BTN_PINKIE=rt,BTN_BASE=lb,BTN_BASE2=rb,BTN_BASE3= Back,BTN_BASE4=Start \
--axismap -Y1=Y1,-Y2=Y2 \
--mimic-xpad
Obviously you have to change the id, which you can find by looking inside the /dev/input/by-id/ folder AFTER you have attached your controller.
(Edit: This has a native linux version, but I have played the win version with lutris.)
xboxdrv --evdev /dev/input/by-id/usb-Microntek_USB_Joystick-event-joystick \
--evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y,ABS_RZ=y2,ABS_Z=x2 \
--evdev-keymap BTN_THUMB2=a,BTN_THUMB=b,BTN_TRIGGER=y,BTN_TOP=x,BTN_TOP2=lt,BTN_PINKIE=rt,BTN_BASE=lb,BTN_BASE2=rb,BTN_BASE3= Back,BTN_BASE4=Start \
--axismap -Y1=Y1,-Y2=Y2 \
--mimic-xpad
Obviously you have to change the id, which you can find by looking inside the /dev/input/by-id/ folder AFTER you have attached your controller.
(Edit: This has a native linux version, but I have played the win version with lutris.)
Post edited December 29, 2024 by bszoke88