Skip to content

A Nintendo Switch Pro Controller Linux device driver (wired) in Python.

License

Notifications You must be signed in to change notification settings

yvbbrjdr/procon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

procon

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.

Quickstart

  1. Clone this repository and enter the directory:
    git clone https://github.com/yvbbrjdr/procon
    cd procon
  2. Copy the udev rules and insert the uinput kernel module:
    sudo cp udev/* /etc/udev/rules.d
    sudo modprobe uinput
  3. Install the required dependencies:
    pip install --user -r requirements.txt
  4. Plug in the Nintendo Switch Pro Controller to your computer.
  5. Run the test program to check if the device and the driver work:
    src/procon.py
  6. Run the device driver:
    src/gamepad.py

About

A Nintendo Switch Pro Controller Linux device driver (wired) in Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages