I want to auto mount my pad at js1 when ubuntu starts
the reason i want to do this is i want to play rocket league on steam, and
joystick mounted as js1 is considered the second one so i can only play using it as I would play with a friend
This is all caused because im trying to trick the xbox pad driver to think my pad is also Xbox one using the command
xboxdrv --evdev /dev/input/event19 --evdev-absmap ABS_HAT0X=x1,ABS_HAT0Y=y1,ABS_RZ=x2,ABS_Z=y2,ABS_Z=dpad_x,ABS_Y=dpad_y --axismap -Y1=Y1,-Y2=Y2 --evdev-keymap BTN_TOP=b,BTN_TRIGGER=x,BTN_THUMB2=a,BTN_THUMB=y,BTN_BASE3=back,BTN_BASE4=start,BTN_BASE=rb,BTN_BASE2=rt,BTN_TOP2=lb,BTN_PINKIE=lt,BTN_BASE5=tl,BTN_BASE6=tr --mimic-xpad --silent &
That command creates a "copy" of joystick as js1, so i think if i automount the original one at js1 copy will be created at js0 and game will detect this one
i want to mention, i need to do this, otherwise my joystick is not "seen" by rocket league so i need to use the xbox version. Also, any option to add that command i use to make fake xbox controller to linux when it boots up? I noticed the event number eventually change(when i first run pad it was 19 now it is 18), can i somehow detect it?