Created
October 10, 2024 17:02
-
-
Save Silva97/08761c11692a6dae5a84e8930903b117 to your computer and use it in GitHub Desktop.
Script for setup an 8BitDo controller as Xbox controller using 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
#!/bin/bash | |
# Script for setup an 8BitDo controller as Xbox controller using xboxdrv. | |
if [ $UID != 0 ]; then | |
echo "You should run as root!" >&2 | |
exit 1 | |
fi | |
device_id="${1-2dc8:3106}" | |
xboxdrv \ | |
--device-by-id "$device_id" \ | |
--mimic-xpad \ | |
--type xbox360 \ | |
--detach-kernel-driver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment