try to fix stucking keys

This commit is contained in:
chrys
2017-05-25 18:15:49 +02:00
parent 99ea1ff37b
commit 9809717095
2 changed files with 3 additions and 1 deletions

View File

@ -79,7 +79,7 @@ class driver():
def writeEventBuffer(self):
if not self._initialized:
return
for iDevice, uDevice, event in self.env['input']['eventBuffer']:
for iDevice, uDevice, event in self.env['input']['eventBuffer']:
self.writeUInput(uDevice, event)
def clearEventBuffer(self):
@ -92,6 +92,7 @@ class driver():
return
uDevice.write_event(event)
uDevice.syn()
time.sleep(0.0001)
def updateInputDevices(self, force = False, init = False):
if init: