add LED debugging
This commit is contained in:
parent
e24c536add
commit
cd76b25878
@ -5,7 +5,14 @@ from select import select
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
iDevices = map(evdev.InputDevice, (evdev.list_devices()))
|
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 = {}
|
uDevices = {}
|
||||||
for fd in iDevices:
|
for fd in iDevices:
|
||||||
dev = iDevices[fd]
|
dev = iDevices[fd]
|
||||||
|
Loading…
Reference in New Issue
Block a user