5 lines
169 B
Python
Executable File
5 lines
169 B
Python
Executable File
from pyudev import Context
|
|
context = Context()
|
|
for device in context.list_devices(subsystem='input'):
|
|
print('{0} - {1}'.format(device.sys_name, device.device_type))
|