From af4e5cb9c4f2773e371e7f81455fa9f7b3992a37 Mon Sep 17 00:00:00 2001 From: chrys Date: Thu, 28 Jun 2018 13:03:11 +0200 Subject: [PATCH] Update inputManager.py --- src/fenrirscreenreader/core/inputManager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fenrirscreenreader/core/inputManager.py b/src/fenrirscreenreader/core/inputManager.py index 1f93125c..72cc6478 100644 --- a/src/fenrirscreenreader/core/inputManager.py +++ b/src/fenrirscreenreader/core/inputManager.py @@ -62,9 +62,12 @@ class inputManager(): self.grabAllDevices() self.executeDeviceGrab = False def handleInputEvent(self, eventData): - print(eventData) + #print(eventData) if not eventData: return + # a hang apears.. try to fix + if self.env['input']['eventBuffer'] != []: + self.env['input']['currInput'] = [] self.env['input']['prevInput'] = self.env['input']['currInput'].copy() if eventData['EventState'] == 0: if eventData['EventName'] in self.env['input']['currInput']: