From f0feb1391d9d341e1320beeff4139eede891ad3d Mon Sep 17 00:00:00 2001 From: chrys Date: Wed, 16 Aug 2017 23:27:40 +0200 Subject: [PATCH] ignore BRLTTY input devices --- src/fenrir/inputDriver/evdevDriver.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fenrir/inputDriver/evdevDriver.py b/src/fenrir/inputDriver/evdevDriver.py index aa024a06..617b10f7 100644 --- a/src/fenrir/inputDriver/evdevDriver.py +++ b/src/fenrir/inputDriver/evdevDriver.py @@ -174,8 +174,10 @@ class driver(): # 2 pos relative # 1 Keys currDevice = evdev.InputDevice(deviceFile) - if currDevice.name.upper() in ['SPEAKUP','PY-EVDEV-UINPUT']: + if currDevice.name.upper() in ['','SPEAKUP','PY-EVDEV-UINPUT']: continue + if 'BRLTTY' in currDevice.name.upper(): + continue cap = currDevice.capabilities() if mode in ['ALL','NOMICE']: if eventType.EV_KEY in cap: