add handler functio
This commit is contained in:
parent
8d6c96a44d
commit
d5fa50e8c3
@ -56,6 +56,8 @@ class eventManager():
|
|||||||
self.env['runtime']['fenrirManager'].handleExecuteCommand(event)
|
self.env['runtime']['fenrirManager'].handleExecuteCommand(event)
|
||||||
elif event['Type'] == fenrirEventType.ByteInput:
|
elif event['Type'] == fenrirEventType.ByteInput:
|
||||||
self.env['runtime']['fenrirManager'].handleByteInput(event)
|
self.env['runtime']['fenrirManager'].handleByteInput(event)
|
||||||
|
elif event['Type'] == fenrirEventType.RemoteIncomming:
|
||||||
|
self.env['runtime']['fenrirManager'].handleRemoteIncomming(event)
|
||||||
def isMainEventLoopRunning(self):
|
def isMainEventLoopRunning(self):
|
||||||
return self.running.value == 1
|
return self.running.value == 1
|
||||||
def startMainEventLoop(self):
|
def startMainEventLoop(self):
|
||||||
|
@ -105,6 +105,10 @@ class fenrirManager():
|
|||||||
self.environment['runtime']['commandManager'].executeCommand( command, 'help')
|
self.environment['runtime']['commandManager'].executeCommand( command, 'help')
|
||||||
return
|
return
|
||||||
self.environment['runtime']['commandManager'].executeCommand( command, 'commands')
|
self.environment['runtime']['commandManager'].executeCommand( command, 'commands')
|
||||||
|
def handleRemoteIncomming(self, event):
|
||||||
|
if not event['Data']:
|
||||||
|
return
|
||||||
|
self.environment['runtime']['remoteManager'].handleRemoteIncomming(event['Data'])
|
||||||
def handleScreenChange(self, event):
|
def handleScreenChange(self, event):
|
||||||
self.environment['runtime']['screenManager'].hanldeScreenChange(event['Data'])
|
self.environment['runtime']['screenManager'].hanldeScreenChange(event['Data'])
|
||||||
'''
|
'''
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
# By Chrys, Storm Dragon, and contributers.
|
# By Chrys, Storm Dragon, and contributers.
|
||||||
|
|
||||||
from fenrirscreenreader.core import debug
|
from fenrirscreenreader.core import debug
|
||||||
|
from fenrirscreenreader.core.eventData import fenrirEventType
|
||||||
|
|
||||||
class remoteManager():
|
class remoteManager():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@ -13,3 +14,8 @@ class remoteManager():
|
|||||||
self.env = environment
|
self.env = environment
|
||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
pass
|
pass
|
||||||
|
def unixSocketWatchDog():
|
||||||
|
pass
|
||||||
|
def handleRemoteIncomming(self, eventData):
|
||||||
|
if not eventData:
|
||||||
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user