I'm trying to configure my new Dualshock 4 controller using xboxdrv.
It shows up as a generic gamepad and I'd like to map the events to the corresponding 360 events.
I've managed to map the axis correctly, but the button presses are not working. I used the example DS3 configuration from xboxdrv's repo, pointing the /dev/ to the correct device.
#!/bin/sh
# Example configuration for the Playstation 3 controller
#
# Note this only works when connected with USB, when using Bluetooth a
# different configuration is required.
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_#48=lt,ABS_#49=rt \
\
--evdev-keymap BTN_THUMB=tl,BTN_THUMB2=tr \
--evdev-keymap BTN_BASE5=lb,BTN_BASE6=rb \
--evdev-keymap KEY_#1=a,KEY_#0=b,KEY_#2=x,KEY_#3=y \
--evdev-keymap BTN_TRIGGER=back,KEY_#720=guide,BTN_TOP=start \
--evdev-keymap BTN_TOP2=du,BTN_PINKIE=dr,BTN_BASE=dd,BTN_BASE2=dl \
\
--axismap -y1=y1,-y2=y2 \
"$@"
# EOF #
Any advice?