Skip to content
This repository has been archived by the owner on Jan 22, 2023. It is now read-only.

Doesn't work with third-party controllers #6

Open
xiota opened this issue Aug 3, 2022 · 0 comments
Open

Doesn't work with third-party controllers #6

xiota opened this issue Aug 3, 2022 · 0 comments

Comments

@xiota
Copy link

xiota commented Aug 3, 2022

The device ID is hardcoded (054c:0ce6) and doesn't work with third-party controllers.

How is this better than a simple shell script?

JS_EVNUM=`grep js /proc/bus/input/devices | head -1 | sed -E 's/^.*event([0-9]+)\s.*$/\1/'`
[ ! -z "$JS_EVNUM" ] && xboxdrv --evdev "/dev/input/event${JS_EVNUM}" \
   --mimic-xpad --silent --quiet --axismap -y1=y1,-y2=y2 \
   --evdev-absmap ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y,ABS_X=X1,ABS_Y=Y1,ABS_RX=X2,ABS_RY=Y2,ABS_Z=LT,ABS_RZ=RT \
   --evdev-keymap BTN_SOUTH=A,BTN_EAST=B,BTN_NORTH=Y,BTN_WEST=X,BTN_START=start,BTN_MODE=guide,BTN_SELECT=back,BTN_TL=LB,BTN_TR=RB,BTN_TL2=LT,BTN_TR2=RT,BTN_THUMBL=TL,BTN_THUMBR=TR
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant