Skip to content

Latest commit

 

History

History
34 lines (30 loc) · 968 Bytes

README.md

File metadata and controls

34 lines (30 loc) · 968 Bytes

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