Skip to content

Instantly share code, notes, and snippets.

@aiberia
Created November 22, 2018 17:37
Show Gist options
  • Save aiberia/21b8f8a2403200707349191649953e83 to your computer and use it in GitHub Desktop.
Save aiberia/21b8f8a2403200707349191649953e83 to your computer and use it in GitHub Desktop.
import evdev
import sys
device = evdev.InputDevice(sys.argv[1])
print(device)
for event in device.read_loop():
print(evdev.categorize(event))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment