I'm writing a game using python, and I need to monitor keyboard events using evdev. I'm new to this lib, so I followed the tutorial online. The following is the script mentioned in the tutorial:
>>> import evdev
>>> devices = [evdev.InputDevice(path) for path in evdev.list_devices()]
>>> for device in devices:
>>> print(device.path, device.name, device.phys)
However, after running the code, the output of list_devices() is None, which indicates that there is no input devices on my computer(a Dell laptop).Why?