hardern heuristic even more
This commit is contained in:
parent
88e77d310c
commit
4444a90aa2
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user