You are not logged in.
Pages: 1
Hi this may be a dumb question but I haven't been able to figure it out. So for some background I use both an Hori Rap VX-SA arcade stick for Xbox360 connected via USB, and a dualshock 4 connected via bluetooth, as gamepads on my system. I would like to run both of them through xboxdrv so they are both detected as 360 pads for some games that have trouble with dualshocks out of the box, and am trying to automate the process so I don't need to configure them in cli every session. The dualshock 4 however, I need to run the following as found in the gamepad section of the arch wiki.
# xboxdrv \
--evdev /dev/input/by-id/usb-Sony_Computer_Entertainment_Wireless_Controller-event-joystick\
--evdev-absmap ABS_X=x1,ABS_Y=y1 \
--evdev-absmap ABS_Z=x2,ABS_RZ=y2 \
--evdev-absmap ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y \
--evdev-keymap BTN_A=x,BTN_B=a \
--evdev-keymap BTN_C=b,BTN_X=y \
--evdev-keymap BTN_Y=lb,BTN_Z=rb \
--evdev-keymap BTN_TL=lt,BTN_TR=rt \
--evdev-keymap BTN_SELECT=tl,BTN_START=tr \
--evdev-keymap BTN_TL2=back,BTN_TR2=start \
--evdev-keymap BTN_MODE=guide \
--axismap -y1=y1,-y2=y2 \
--mimic-xpad \
--silenthowever in the second line where it says "/dev/input/by-id/usb-Sony_Computer_Entertainment_Wireless_Controller-event-joystick\", my dualshock does not show up in /dev/input/by-id/ but rather as /dev/input/event*. Because of this, I can run evtest to detect the event number of my dualshock each session and it does work fine that way, but it seems to change the actual event number between reboots and I'm wondering how I can run a script to automate this process if the event number is variable? Or is there a way to give them unique identifiers in the form of a file to avoid this issue. Thanks.
Last edited by cathedral_junky (2020-12-29 20:10:58)
Offline
You can probably create a fixed symlink with an udev rule.
https://wiki.archlinux.org/index.php/Ud … le_example
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |
Offline
this ended up working for the question I asked but had a bit of trouble getting it to work with xboxdrv for whatever reason, so ill mark as solved, ended up just using ds4drv on my dualshock and emulating as xpad instead. Thanks !
Offline
Pages: 1