Skip to content

Instantly share code, notes, and snippets.

View KrisDevelopment's full-sized avatar
😃

Histo Ivanov KrisDevelopment

😃
View GitHub Profile
@KrisDevelopment
KrisDevelopment / fixcontroller.py
Last active August 8, 2024 12:59 — forked from dnmodder/fixcontroller.py
This script should no longer be necessary thanks to the latest changes made to the master branch of the xpad [https://github.com/paroj/xpad] driver, please give it a try and report any regressions you find.
#!/usr/bin/env python3
import os
import sys
print("Usage: fixcontroller.py [--safe], or use the run.sh script") # safety mode to prevent infinite loop
# Gamepad USB fix
if len(sys.argv) == 1:
# A shell script wrapper generation for externally managed environemnts (eg. deb12).