Created
December 23, 2015 21:43
-
-
Save meska/c281868266b5a666d574 to your computer and use it in GitHub Desktop.
moonlight streamer xboxdrv /etc/default/xboxdrv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How many Controllers? (support up to 4 Controllers) | |
CONTROLLER_NUM=1 | |
case $CONTROLLER_NUM in | |
1) CONTROLLER="-w 0 -l 2 --trigger-as-button --dpad-as-button" | |
;; | |
2) CONTROLLER="-w 0 -l 2 --trigger-as-button --dpad-as-button --next-controller -w 1 -l 3 --trigger-as-button --dpad-as-button" | |
;; | |
3) CONTROLLER="-w 0 -l 2 --trigger-as-button --dpad-as-button --next-controller -w 1 -l 3 --trigger-as-button --dpad-as-button --next-controller -w 2 -l 4 --trigger-as-button --dpad-as-button" | |
;; | |
4) CONTROLLER="-w 0 -l 2 --trigger-as-button --dpad-as-button --next-controller -w 1 -l 3 --trigger-as-button --dpad-as-button --next-controller -w 2 -l 4 --trigger-as-button --dpad-as-button --next-controller -w 3 -l 5 --trigger-as-button --dpad-as-button" | |
;; | |
*) CONTROLLER="incorrect amount of controller specified" | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment