make update Rate configurable

This commit is contained in:
chrys 2016-08-08 21:10:43 +02:00
parent 77d5400633
commit de92da8b00
4 changed files with 9 additions and 7 deletions

12
TODO
View File

@ -1,6 +1,7 @@
ToDos in Priority order: ToDos in Priority order:
- try to consume shortcuts - try to consume shortcuts
- fix line wrapping bug (multible lines and make a linebreak in the middle of a line)
- implement commands - implement commands
set_copy_begin_mark set_copy_begin_mark
@ -23,10 +24,9 @@ https://git.gnome.org/browse/orca/tree/src/orca/braille.py
https://wiki.gnome.org/Attic/LSR/ScratchPad/Braille/BrlAPI https://wiki.gnome.org/Attic/LSR/ScratchPad/Braille/BrlAPI
- add the debugging to core - add the debugging to core
- make screenUpdate rate configurable
- configuration should be overwriteable with parameter and alternative paths - configuration should be overwriteable with parameter and alternative paths
- write settings - write settings
- menue for settings configuration - menue for settings configuration #storm
- translateable - translateable
- dictonary for special chars and string replacements - dictonary for special chars and string replacements
- implement speechdriver generic (say) - implement speechdriver generic (say)
@ -68,9 +68,6 @@ http://devel.freebsoft.org/doc/speechd/speech-dispatcher.html#Client-Programming
cat /sys/devices/virtual/tty/tty0/active cat /sys/devices/virtual/tty/tty0/active
http://serverfault.com/questions/306854/how-to-find-out-the-currently-active-linux-virtual-terminal-while-connected-via http://serverfault.com/questions/306854/how-to-find-out-the-currently-active-linux-virtual-terminal-while-connected-via
- debugging
- threading ReadContent, ReadShortcuts, executeCommands, listenNewTTYsForListen, controllThread (main)
- autoload plugins while starting
- Input - Input
http://python-evdev.readthedocs.io/en/latest/tutorial.html http://python-evdev.readthedocs.io/en/latest/tutorial.html
http://stackoverflow.com/questions/12384772/how-can-i-capture-mouseevents-and-keyevents-using-python-in-background-on-linux http://stackoverflow.com/questions/12384772/how-can-i-capture-mouseevents-and-keyevents-using-python-in-background-on-linux
@ -123,8 +120,11 @@ except KeyboardInterrupt:
- convert volume to percent in config - convert volume to percent in config
- convert pitch to percent in config - convert pitch to percent in config
- convert rate to percent in config - convert rate to percent in config
- make screenUpdate rate configurable
- default soundIcon theme (soundfiles) - default soundIcon theme (soundfiles)
- debugging
- threading ReadContent, ReadShortcuts, executeCommands, listenNewTTYsForListen, controllThread (main)
- autoload plugins while starting
- implement commands - implement commands
curr_word curr_word
curr_char curr_char

View File

@ -21,6 +21,7 @@ layout=en
[screen] [screen]
driver=linux driver=linux
screenUpdateDelay=0.4
[keyboard] [keyboard]
device=all device=all

View File

@ -13,7 +13,7 @@ class inputManager():
def getKeyPressed(self, environment): def getKeyPressed(self, environment):
timeout = True timeout = True
try: try:
r, w, x = select(self.devices, [], [],0.4) r, w, x = select(self.devices, [], [], environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'screen', 'screenUpdateDelay'))
environment['runtime']['globalLock'].acquire(True) environment['runtime']['globalLock'].acquire(True)
if r != []: if r != []:
timeout = False timeout = False

View File

@ -26,6 +26,7 @@ settings = {
}, },
'screen':{ 'screen':{
'driver': 'linux', 'driver': 'linux',
'screenUpdateDelay':0.4,
}, },
'general':{ 'general':{
'keyboardLayout': "desktop", 'keyboardLayout': "desktop",