Update inputManager.py
This commit is contained in:
parent
e1696ee077
commit
af4e5cb9c4
@ -62,9 +62,12 @@ class inputManager():
|
|||||||
self.grabAllDevices()
|
self.grabAllDevices()
|
||||||
self.executeDeviceGrab = False
|
self.executeDeviceGrab = False
|
||||||
def handleInputEvent(self, eventData):
|
def handleInputEvent(self, eventData):
|
||||||
print(eventData)
|
#print(eventData)
|
||||||
if not eventData:
|
if not eventData:
|
||||||
return
|
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()
|
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']:
|
||||||
|
Loading…
Reference in New Issue
Block a user