Emulate Nintendo Switch Controllers over Bluetooth
Python
1,363
117 commits
updated Mar 22, 2022
Emulate Nintendo Switch Controllers over Bluetooth.
Tested on Ubuntu 19.10, and with Raspberry Pi 3B+ and 4B Raspbian GNU/Linux 10 (buster)
Emulation of JOYCON_R, JOYCON_L and PRO_CONTROLLER. Able to send:
Ubuntu: Install the dbus-python and libhidapi-hidraw0 packages
sudo apt install python3-dbus libhidapi-hidraw0
Arch Linux Derivatives: Install the hidapi and bluez-utils-compat(AUR) packages
sudo pip3 install .
sudo python3 run_controller_cli.py PRO_CONTROLLER
This will create a PRO_CONTROLLER instance waiting for the Switch to connect.
The Switch only pairs with new controllers in the "Change Grip/Order" menu.
Note: If you already connected an emulated controller once, you can use the reconnect option of the script (-r "<Switch Bluetooth Mac address>"). This does not require the "Change Grip/Order" menu to be opened. You can find out a paired mac address using the "bluetoothctl" system command.
Call "help" to see a list of available commands.
4,004 followers · starred Dec 2020
688 followers · starred May 2020
196 followers · starred Feb 2020
125 followers · starred Jun 2020
Emulate Nintendo Switch Controllers over Bluetooth
Python
1,363
117 commits
updated Mar 22, 2022
Emulate Nintendo Switch Controllers over Bluetooth.
Tested on Ubuntu 19.10, and with Raspberry Pi 3B+ and 4B Raspbian GNU/Linux 10 (buster)
Emulation of JOYCON_R, JOYCON_L and PRO_CONTROLLER. Able to send:
Ubuntu: Install the dbus-python and libhidapi-hidraw0 packages
sudo apt install python3-dbus libhidapi-hidraw0
Arch Linux Derivatives: Install the hidapi and bluez-utils-compat(AUR) packages
sudo pip3 install .
sudo python3 run_controller_cli.py PRO_CONTROLLER
This will create a PRO_CONTROLLER instance waiting for the Switch to connect.
The Switch only pairs with new controllers in the "Change Grip/Order" menu.
Note: If you already connected an emulated controller once, you can use the reconnect option of the script (-r "<Switch Bluetooth Mac address>"). This does not require the "Change Grip/Order" menu to be opened. You can find out a paired mac address using the "bluetoothctl" system command.
Call "help" to see a list of available commands.
4,004 followers · starred Dec 2020
688 followers · starred May 2020
196 followers · starred Feb 2020
125 followers · starred Jun 2020