Update eventManager.py
This commit is contained in:
parent
935ef293bf
commit
8ded8a4180
@ -64,9 +64,7 @@ class eventManager():
|
|||||||
def handleStopMainLoop(self, event):
|
def handleStopMainLoop(self, event):
|
||||||
self.running.value = 0
|
self.running.value = 0
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
def stopMainEventLoop(self, Force = False):
|
def stopMainEventLoop(self):
|
||||||
if Force:
|
|
||||||
self.running.value = 0
|
|
||||||
self._eventQueue.put({"Type":fenrirEventType.StopMainLoop,"Data":None})
|
self._eventQueue.put({"Type":fenrirEventType.StopMainLoop,"Data":None})
|
||||||
def cleanEventQueue(self):
|
def cleanEventQueue(self):
|
||||||
if self._eventQueue.empty():
|
if self._eventQueue.empty():
|
||||||
@ -78,7 +76,7 @@ class eventManager():
|
|||||||
pass
|
pass
|
||||||
def getEventQueue(self):
|
def getEventQueue(self):
|
||||||
return self._eventQueue
|
return self._eventQueue
|
||||||
def getMainLoopRunning(self):
|
def getRunning(self):
|
||||||
return self.running
|
return self.running
|
||||||
def putToEventQueue(self,event, data):
|
def putToEventQueue(self,event, data):
|
||||||
if not isinstance(event, fenrirEventType):
|
if not isinstance(event, fenrirEventType):
|
||||||
|
Loading…
Reference in New Issue
Block a user