From 05676e8e0915cb313d1a77226f1f57b6815206ae Mon Sep 17 00:00:00 2001 From: chrys Date: Sat, 19 May 2018 01:19:30 +0200 Subject: [PATCH] add tool --- tools/deviceInfo.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 tools/deviceInfo.py diff --git a/tools/deviceInfo.py b/tools/deviceInfo.py new file mode 100755 index 00000000..6aff7eb2 --- /dev/null +++ b/tools/deviceInfo.py @@ -0,0 +1,4 @@ +from pyudev import Context +context = Context() +for device in context.list_devices(subsystem='input'): + '{0} - {1}'.format(device.sys_name, device.device_type)