Skip to content

Commit

Permalink
remote gen 3: fixed touchpad skips #1 @Kate6
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanndroid committed Nov 15, 2023
1 parent 23e683f commit d15565b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions remote/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def __handle_touchpad(self, data):
@staticmethod
def __decode_finger(data):
x = int((data[0] + 255 * (data[1] & 7) - 230) / 15)
if x < 0: x = x + 150
y = (data[2] if data[2] & 128 else data[2] + 255) - 188
p = data[5]
return x, y, p

0 comments on commit d15565b

Please sign in to comment.