gvalkov / python-evdev

Python bindings for the Linux input subsystem
https://python-evdev.rtfd.org/
BSD 3-Clause "New" or "Revised" License
336 stars 112 forks source link

Importing modules was wrong in `selector` #159

Closed MarioMey closed 2 years ago

MarioMey commented 3 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)
gvalkov commented 2 years ago

Thanks!