fenrir/tools/deviceInfo.py

5 lines
162 B
Python
Raw Permalink Normal View History

2018-05-18 19:19:30 -04:00
from pyudev import Context
context = Context()
for device in context.list_devices(subsystem='input'):
'{0} - {1}'.format(device.sys_name, device.device_type)