pynput icon indicating copy to clipboard operation
pynput copied to clipboard

wrap mouse axis x,y

Open planer-pro opened this issue 3 years ago • 2 comments

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)

planer-pro avatar Mar 28 '21 11:03 planer-pro

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?

moses-palmer avatar Mar 29 '21 19:03 moses-palmer

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)

planer-pro avatar Mar 30 '21 11:03 planer-pro