pynput
pynput copied to clipboard
wrap mouse axis x,y
Hi everyone. I am newbie. Who knows how to do unlimited mouse mooves for x and y axis? Construction like below not work - after 1024 mouse begin jump from left to right; `def on_move(x, y): if x > 1024: mouse.position = (0, y) print(x,y)
Thank you for your report.
What platform do you use?
If I understand you correctly, when the pointer is past x = 1024, your code causes it to jump to the left edge of the screen, only to return to the position past x = 1024 immediately?
Thank you for your report.
What platform do you use?
If I understand you correctly, when the pointer is past x = 1024, your code causes it to jump to the left edge of the screen, only to return to the position past x = 1024 immediately?
yes, you understand right. I use raspberry pi platform. RaspbianOS Linux in ideal variant i need get mouse DIRECTION. But if calculate direction from get position, but very soon mouse stopted because screen resolution is finished for both axis. Get mouse direction by library do not allow (no such function)