hardern heuristic even more

This commit is contained in:
Chrys 2019-08-23 00:01:44 +02:00
parent 88e77d310c
commit 4444a90aa2

View File

@ -167,10 +167,11 @@ class driver(screenDriver):
if lastScreenContent == b'': if lastScreenContent == b'':
lastScreenContent = screenContent lastScreenContent = screenContent
if (abs( int(screenContent[2]) - int(lastScreenContent[2])) in [1,2]) and \ if (abs( int(screenContent[2]) - int(lastScreenContent[2])) in [1,2]) and \
(abs( int(screenContent[3]) == int(lastScreenContent[3]))): (int(screenContent[3]) == int(lastScreenContent[3])):
# Skip X Movement # Skip X Movement
pass pass
elif abs( int(screenContent[3]) - int(lastScreenContent[3])) in [1]: elif (abs( int(screenContent[3]) - int(lastScreenContent[3])) in [1]) and \
(int(screenContent[2]) == int(lastScreenContent[2])):
# Skip Y Movement # Skip Y Movement
pass pass
else: else: