From d0bdaea86ecbec081b30ad7a4347c366f09b291f Mon Sep 17 00:00:00 2001 From: chrys Date: Sun, 13 May 2018 21:27:29 +0200 Subject: [PATCH] more strict keyboard filter --- src/fenrirscreenreader/inputDriver/evdevDriver.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/fenrirscreenreader/inputDriver/evdevDriver.py b/src/fenrirscreenreader/inputDriver/evdevDriver.py index cd2191e0..5beecba8 100644 --- a/src/fenrirscreenreader/inputDriver/evdevDriver.py +++ b/src/fenrirscreenreader/inputDriver/evdevDriver.py @@ -134,7 +134,6 @@ class driver(inputDriver): return uDevice.write_event(event) uDevice.syn() - time.sleep(0.00001) def updateInputDevices(self, force = False, init = False): if init: @@ -173,8 +172,8 @@ class driver(inputDriver): if 116 in cap[eventType.EV_KEY] and len(cap[eventType.EV_KEY]) < 10: self.env['runtime']['debug'].writeDebugOut('Device Skipped (has 116):' + currDevice.name,debug.debugLevel.INFO) continue - if len(cap[eventType.EV_KEY]) < 30: - self.env['runtime']['debug'].writeDebugOut('Device Skipped (< 30 keys):' + currDevice.name,debug.debugLevel.INFO) + if len(cap[eventType.EV_KEY]) < 60: + self.env['runtime']['debug'].writeDebugOut('Device Skipped (< 60 keys):' + currDevice.name,debug.debugLevel.INFO) continue if mode == 'ALL': self.iDevices[currDevice.fd] = currDevice