ignore BRLTTY input devices

This commit is contained in:
chrys 2017-08-16 23:27:40 +02:00
parent 2111c26980
commit f0feb1391d

View File

@ -174,8 +174,10 @@ class driver():
# 2 pos relative # 2 pos relative
# 1 Keys # 1 Keys
currDevice = evdev.InputDevice(deviceFile) currDevice = evdev.InputDevice(deviceFile)
if currDevice.name.upper() in ['SPEAKUP','PY-EVDEV-UINPUT']: if currDevice.name.upper() in ['','SPEAKUP','PY-EVDEV-UINPUT']:
continue continue
if 'BRLTTY' in currDevice.name.upper():
continue
cap = currDevice.capabilities() cap = currDevice.capabilities()
if mode in ['ALL','NOMICE']: if mode in ['ALL','NOMICE']:
if eventType.EV_KEY in cap: if eventType.EV_KEY in cap: