boards: simulator: Swap up/down swipe detection

Fix swipe detection so it matches the real device.

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
This commit is contained in:
Daniel Thompson 2020-07-09 22:29:57 +01:00
parent c87bcd8693
commit c739df119b
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ class CST816SSim():
elif abs(mv_x) > abs(mv_y):
self.regs[1] = 4 if mv_x > 0 else 3
else:
self.regs[1] = 2 if mv_y > 0 else 1
self.regs[1] = 1 if mv_y > 0 else 2
self.regs[4] = up_x;
self.regs[6] = up_y;