diff --git a/play zone/consumeEvents.py b/play zone/consumeEvents.py index 3adad634..573f8930 100755 --- a/play zone/consumeEvents.py +++ b/play zone/consumeEvents.py @@ -5,7 +5,14 @@ from select import select import time iDevices = map(evdev.InputDevice, (evdev.list_devices())) -iDevices = {dev.fd: dev for dev in iDevices if 1 in dev.capabilities()} +iDevices = {dev.fd: dev for dev in iDevices if evdev.events.EV_KEY in dev.capabilities()} + +for fd in iDevices: + dev = iDevices[fd] + print(dev.name,dev.leds()) + +return + uDevices = {} for fd in iDevices: dev = iDevices[fd]