Created
November 22, 2018 17:37
-
-
Save aiberia/21b8f8a2403200707349191649953e83 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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