A Nintendo Switch Pro Controller Linux device driver (wired) in Python.
This driver emits the controller events to a uinput
device. Only buttons and
sticks are supported, but the test program can read accelerometer and gyroscope
data. Setting home light intensity, player lights, and rumbling are supported by
the driver API.
- Clone this repository and enter the directory:
git clone https://github.com/yvbbrjdr/procon cd procon
- Copy the udev rules and insert the
uinput
kernel module:sudo cp udev/* /etc/udev/rules.d sudo modprobe uinput
- Install the required dependencies:
pip install --user -r requirements.txt
- Plug in the Nintendo Switch Pro Controller to your computer.
- Run the test program to check if the device and the driver work:
src/procon.py
- Run the device driver:
src/gamepad.py