initial key handling

This commit is contained in:
chrys
2016-07-07 21:40:10 +02:00
parent f7fa100173
commit 5ee9dca99e
4 changed files with 32 additions and 5 deletions

View File

@@ -5,12 +5,16 @@
import os, sys
DEBUG = False
if not os.getcwd() in sys.path:
sys.path.append(os.getcwd())
from core import environment
from core import inputManager
from utils import debug
from speech import espeak as es
from speech import speechd as sd
from screen import linux as lx
@@ -18,11 +22,15 @@ from screen import linux as lx
class fenrir():
def __init__(self):
self.runtime = environment.runtime
self.runtime['inputManager'] = inputManager.inputManager()
if DEBUG:
self.runtime['debug'] = debug.debug()
self.settings = environment.settings
self.bindings = {}
self.autospeak = []
self.soundIcons = {}
# the following hard coded, in future we have a config loader
self.runtime['speechDriverString'] = 'speechd'
self.runtime['speechDriver'] = sd.speech()
self.runtime['screenDriverString'] = 'linux'
@@ -31,6 +39,7 @@ class fenrir():
def proceed(self):
while(self.runtime['running']):
self.runtime = self.runtime['screenDriver'].analyzeScreen(self.runtime)
self.runtime['inputManager'].getKeyPressed(self.runtime)
def shutdown(self):
pass