Closed MarioMey closed 2 years ago
This example:
from evdev import InputDevice from selectors import DefaultSelector, EVENT_READ selector = selectors.DefaultSelector() keybd = evdev.InputDevice('/dev/input/event2') selector.register(keybd, selectors.EVENT_READ)
To this:
from evdev import InputDevice from selectors import DefaultSelector, EVENT_READ selector = DefaultSelector() keybd = InputDevice('/dev/input/event2') selector.register(keybd, EVENT_READ)
Thanks!
This example:
To this: