Skip to content

Instantly share code, notes, and snippets.

@wyatt8740
Created May 19, 2021 02:56
Show Gist options
  • Save wyatt8740/f2bf39abf468ce43dee73c8ace8d7820 to your computer and use it in GitHub Desktop.
Save wyatt8740/f2bf39abf468ce43dee73c8ace8d7820 to your computer and use it in GitHub Desktop.
Sega Mega Drive/Genesis Mini gamepad (EU/US model): register as a joystick (udev rule)
# Make sega gamepad get detected as a joystick (so SDL2 sees it)
SUBSYSTEM=="input", ATTRS{idVendor}=="0ca3", ATTRS{idProduct}=="0025", GROUP="usb", ENV{ID_INPUT_JOYSTICK}="1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment