Skip to content

Commit

Permalink
Merge pull request #31 from gyates100895/gyates100895-seperate-slot-o…
Browse files Browse the repository at this point in the history
…ptions-1

Gyates100895 seperate slot options 1
  • Loading branch information
raelgc committed Mar 19, 2015
2 parents 282d387 + ee3e57f commit ec1c4cc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/etc/default/xboxdrv
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,12 @@ TRIGGER_AS_BUTTON=true
MIMIC_XPAD=true

# Additional options that are passed to xboxdrv (see xboxdrv man pages).
# These are appended once during start
XBOXDRV_OPTIONS=""

# Edit each block to give each controller slot its own options.
# These are appended last for their respective slots
CONTROLLER0_OPTIONS=""
CONTROLLER1_OPTIONS=""
CONTROLLER2_OPTIONS=""
CONTROLLER3_OPTIONS=""
6 changes: 5 additions & 1 deletion src/etc/init/xboxdrv.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ script
MIMIC_XPAD=true
TRIGGER_AS_BUTTON=true
XBOXDRV_OPTIONS=""
CONTROLLER0_OPTIONS=""
CONTROLLER1_OPTIONS=""
CONTROLLER2_OPTIONS=""
CONTROLLER3_OPTIONS=""
# Read configuration variable file if it is present
if [ -f /etc/default/xboxdrv ] ; then
. /etc/default/xboxdrv
Expand All @@ -30,5 +34,5 @@ script
fi
# Adding --detache-kernel-driver
PAD_OPTIONS="$PAD_OPTIONS --detach-kernel-driver"
xboxdrv --daemon --silent --dbus disabled $XBOXDRV_OPTIONS $PAD_OPTIONS --next-controller $PAD_OPTIONS --next-controller $PAD_OPTIONS --next-controller $PAD_OPTIONS
xboxdrv --daemon --silent --dbus disabled $XBOXDRV_OPTIONS $PAD_OPTIONS $CONTROLLER0_OPTIONS --next-controller $PAD_OPTIONS $CONTROLLER1_OPTIONS --next-controller $PAD_OPTIONS $CONTROLLER2_OPTIONS--next-controller $PAD_OPTIONS $CONTROLLER3_OPTIONS
end script

0 comments on commit ec1c4cc

Please sign in to comment.