Open xiota opened 2 years ago
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
The device ID is hardcoded (054c:0ce6) and doesn't work with third-party controllers.
How is this better than a simple shell script?