Skip to content

Instantly share code, notes, and snippets.

@Ph1syc
Ph1syc / DJ.py
Created June 18, 2025 17:47
Python script to use a PS3 DJ Hero controller on Spin Rhythm XD (might work with turntables for other platforms)
# This script should be fairly readable so I didn't bother adding comments but if you have any questions just contact me on discord, my username is ph1syc
import evdev, time, math, fnmatch, os, json, sys, signal
from math import tanh
from time import sleep
from evdev import ecodes as e
from evdev import *
from fnmatch import fnmatch
if os.getuid() == 0: