Skip to content

Commit

Permalink
Fix given mouse position in float type
Browse files Browse the repository at this point in the history
  • Loading branch information
guyavrhm committed Jun 26, 2021
1 parent e6de977 commit 066b44e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/comms/transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def get_controlled(self):

if cmd_type == "mov":
x_pos, y_pos = action
self.mouse.position = (int(x_pos), int(y_pos))
self.mouse.position = (int(float(x_pos)), int(float(y_pos)))

elif cmd_type == "prsk":
# data = True/False, key:
Expand Down

0 comments on commit 066b44e

Please sign in to comment.