Guest User

Untitled

a guest
Sep 13th, 2020
186
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. # Runs Blobby Volley with custom xboxdrv settings
  4.  
  5. # Set up custom xboxdrv settings
  6. sudo killall xboxdrv
  7.  
  8. sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv \
  9.     --evdev /dev/input/by-id/usb-Logitech_Wireless_Gamepad_F710_C4F49368-event-joystick \
  10.     --silent \
  11.     --detach-kernel-driver \
  12.     --force-feedback \
  13.     --deadzone-trigger 15% \
  14.     --deadzone 4000 \
  15.     --mimic-xpad \
  16.     --dpad-as-button \
  17.     --evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_RX=x2,ABS_RY=y2,ABS_Z=lt,ABS_RZ=rt,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y \
  18.     --evdev-keymap BTN_SOUTH=a,BTN_EAST=b,BTN_NORTH=x,BTN_WEST=y,BTN_TL=lb,BTN_TR=rb,BTN_THUMBL=tl,BTN_THUMBR=tr,BTN_MODE=guide,BTN_SELECT=back,BTN_START=start \
  19.     --axismap -Y1=Y1,-Y2=Y2 \
  20.     --ui-buttonmap du=KEY_UP,dd=KEY_DOWN,dl=KEY_LEFT,dr=KEY_RIGHT \
  21.     --ui-axismap x1=REL_X:10,y1=REL_Y:10 \
  22.     --ui-axismap x2=void,y2=void \
  23.     --ui-buttonmap a=KEY_UP,back=KEY_SPACE,start=KEY_ENTER,lb=KEY_ESC,rb=KEY_BACKSPACE,tl=BTN_LEFT,tr=BTN_RIGHT \
  24.     --ui-buttonmap b=void,x=void,y=void,lt=void,rt=void,guide=void \
  25.     &
  26.  
  27. sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv \
  28.     --evdev /dev/input/by-id/usb-Logitech_Wireless_Gamepad_F710_B1C3D933-event-joystick \
  29.     --silent \
  30.     --detach-kernel-driver \
  31.     --force-feedback \
  32.     --deadzone-trigger 15% \
  33.     --deadzone 4000 \
  34.     --mimic-xpad \
  35.     --dpad-as-button \
  36.     --evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_RX=x2,ABS_RY=y2,ABS_Z=lt,ABS_RZ=rt,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y \
  37.     --evdev-keymap BTN_SOUTH=a,BTN_EAST=b,BTN_NORTH=x,BTN_WEST=y,BTN_TL=lb,BTN_TR=rb,BTN_THUMBL=tl,BTN_THUMBR=tr,BTN_MODE=guide,BTN_SELECT=back,BTN_START=start \
  38.     --axismap -Y1=Y1,-Y2=Y2 \
  39.     --ui-buttonmap du=KEY_W,dd=KEY_S,dl=KEY_A,dr=KEY_D \
  40.     --ui-axismap x1=REL_X:10,y1=REL_Y:10 \
  41.     --ui-axismap x2=void,y2=void \
  42.     --ui-buttonmap a=KEY_A,back=KEY_SPACE,start=KEY_ENTER,lb=KEY_ESC,rb=KEY_BACKSPACE,tl=BTN_LEFT,tr=BTN_RIGHT \
  43.     --ui-buttonmap b=void,x=void,y=void,lt=void,rt=void,guide=void \
  44.     &
  45.  
  46. # Runs Blobby Volley
  47. blobby
  48.  
  49. # Restores the default xboxdrv settings
  50. sudo killall xboxdrv
  51.  
  52. sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv \
  53.     --evdev /dev/input/by-id/usb-Logitech_Wireless_Gamepad_F710_C4F49368-event-joystick \
  54.     --silent \
  55.     --detach-kernel-driver \
  56.     --force-feedback \
  57.     --deadzone-trigger 15% \
  58.     --deadzone 4000 \
  59.     --mimic-xpad \
  60.     --evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_RX=x2,ABS_RY=y2,ABS_Z=lt,ABS_RZ=rt,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y \
  61.     --evdev-keymap BTN_SOUTH=a,BTN_EAST=b,BTN_NORTH=x,BTN_WEST=y,BTN_TL=lb,BTN_TR=rb,BTN_THUMBL=tl,BTN_THUMBR=tr,BTN_MODE=guide,BTN_SELECT=back,BTN_START=start \
  62.     &
  63.  
  64. sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv \
  65.     --evdev /dev/input/by-id/usb-Logitech_Wireless_Gamepad_F710_B1C3D933-event-joystick \
  66.     --silent \
  67.     --detach-kernel-driver \
  68.     --force-feedback \
  69.     --deadzone-trigger 15% \
  70.     --deadzone 4000 \
  71.     --mimic-xpad \
  72.     --evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_RX=x2,ABS_RY=y2,ABS_Z=lt,ABS_RZ=rt,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y \
  73.     --evdev-keymap BTN_SOUTH=a,BTN_EAST=b,BTN_NORTH=x,BTN_WEST=y,BTN_TL=lb,BTN_TR=rb,BTN_THUMBL=tl,BTN_THUMBR=tr,BTN_MODE=guide,BTN_SELECT=back,BTN_START=start \
  74.     &
  75.  
  76. sleep 1
  77.  
RAW Paste Data