tarina

git clone https://git.tarina.org/tarina
Log | Files | Refs | README | LICENSE

commit 46ca950448d1d3addee9d8d9715b3e16f8fa2195
parent 0e4781a66e0dcf43120db84c081d07e152642f75
Author: rob <rob@tarina.org>
Date:   Tue, 14 Jan 2020 06:58:36 +0200

keyboard less laggy while writing

Diffstat:
Mtarina.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tarina.py b/tarina.py @@ -512,7 +512,7 @@ def nameyourfilm(filmfolder, filmname, abc, newfilm): cursor = ' ' blinking = not blinking pausetime = time.time() - time.sleep(0.08) + time.sleep(keydelay) #------------Timelapse-------------------------- @@ -1758,7 +1758,7 @@ def getbutton(lastbutton, buttonpressed, buttontime, holdbutton): if readbus == 255 and readbus2 == 247 and event == '': buttonpressed = False if float(time.time() - buttontime) > 0.2 and buttonpressed == True: - if holdbutton == 'up' or holdbutton == 'down' or holdbutton == 'right' or holdbutton == 'left' or holdbutton == 'shutdown': + if holdbutton == 'up' or holdbutton == 'down' or holdbutton == 'right' or holdbutton == 'left' or holdbutton == 'shutdown' or holdbutton == 'remove': pressed = holdbutton keydelay = 0.06 if time.time() - buttontime > 2 and buttonpressed == True: