Update inputManager.py
This commit is contained in:
parent
d3bec267af
commit
5063362dbc
@ -46,10 +46,10 @@ class inputManager():
|
|||||||
def handleDeviceGrab(self):
|
def handleDeviceGrab(self):
|
||||||
if not self.executeDeviceGrab:
|
if not self.executeDeviceGrab:
|
||||||
return
|
return
|
||||||
if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'grabDevices'):
|
|
||||||
return
|
|
||||||
if not self.noKeyPressed():
|
if not self.noKeyPressed():
|
||||||
return
|
return
|
||||||
|
if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'grabDevices'):
|
||||||
|
return
|
||||||
if self.env['runtime']['screenManager'].getCurrScreenIgnored():
|
if self.env['runtime']['screenManager'].getCurrScreenIgnored():
|
||||||
self.ungrabAllDevices()
|
self.ungrabAllDevices()
|
||||||
self.env['runtime']['outputManager'].interruptOutput()
|
self.env['runtime']['outputManager'].interruptOutput()
|
||||||
@ -59,7 +59,6 @@ class inputManager():
|
|||||||
def handleInputEvent(self, eventData):
|
def handleInputEvent(self, eventData):
|
||||||
if not eventData:
|
if not eventData:
|
||||||
return
|
return
|
||||||
self.handleDeviceGrab()
|
|
||||||
self.env['input']['prevInput'] = self.env['input']['currInput'].copy()
|
self.env['input']['prevInput'] = self.env['input']['currInput'].copy()
|
||||||
if eventData['EventState'] == 0:
|
if eventData['EventState'] == 0:
|
||||||
if eventData['EventName'] in self.env['input']['currInput']:
|
if eventData['EventName'] in self.env['input']['currInput']:
|
||||||
@ -97,7 +96,6 @@ class inputManager():
|
|||||||
if self.noKeyPressed():
|
if self.noKeyPressed():
|
||||||
self.env['input']['prevInput'] = []
|
self.env['input']['prevInput'] = []
|
||||||
self.setLedState = True
|
self.setLedState = True
|
||||||
else:
|
|
||||||
self.handleDeviceGrab()
|
self.handleDeviceGrab()
|
||||||
|
|
||||||
def handleLedStates(self, mEvent):
|
def handleLedStates(self, mEvent):
|
||||||
|
Loading…
Reference in New Issue
Block a user