Skip to content

Instantly share code, notes, and snippets.

@Silva97
Created October 10, 2024 17:02
Show Gist options
  • Save Silva97/08761c11692a6dae5a84e8930903b117 to your computer and use it in GitHub Desktop.
Save Silva97/08761c11692a6dae5a84e8930903b117 to your computer and use it in GitHub Desktop.
Script for setup an 8BitDo controller as Xbox controller using xboxdrv.
#!/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