Update inputManager.py

This commit is contained in:
chrys87 2016-08-31 13:54:00 +02:00 committed by GitHub
parent b9e3332513
commit 92d59146ce

View File

@ -28,7 +28,7 @@ class inputManager():
environment['input']['consumeKey'] = not environment['input']['keyForeward'] and not environment['generalInformation']['suspend']
if self.isConsumeKeypress(environment):
environment['runtime']['debug'].writeDebugOut(environment, str(event)+' consume'+str(time.time()),debug.debugLevel.ERROR)
self.writeUInput(self.uDevices[fd], event)
self.writeUInput(self.uDevices[fd], event,environment)
keyString = ''
if self.isFenrirKey(environment, event):
keyString = 'FENRIR'
@ -62,7 +62,7 @@ class inputManager():
environment['input']['keyForeward'] or \
not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'keyboard', 'grabDevices')
def writeUInput(self, uDevice, event):
def writeUInput(self, uDevice, event,environment):
try:
environment['runtime']['debug'].writeDebugOut(environment, str(event)+' write event '+str(time.time()),debug.debugLevel.ERROR)
uDevice.write_event(event)