commit 2c6f06c8184f101c48e1b1bc228195f61bf8ad31
parent a0f28d8ca515fa477136a25031086271254a13e7
Author: rbckman <robinbackman@gmail.com>
Date: Wed, 22 Aug 2018 23:23:32 +0300
keyboard holddown button for faster scrolling
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tarina.py b/tarina.py
@@ -1055,7 +1055,7 @@ def getbutton(lastbutton, buttonpressed, buttontime, holdbutton):
buttontime = time.time()
holdbutton = pressed
buttonpressed = True
- if readbus == 255 and readbus2 == 247:
+ if readbus == 255 and readbus2 == 247 and event == -1:
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':