SavinaRoja / PyUserInput

A module for cross-platform control of the mouse and keyboard in python that is simple to install and use.
GNU General Public License v3.0
1.07k stars 244 forks source link

Getting mouse-delta from the mouse driver #103

Open Schizo opened 6 years ago

Schizo commented 6 years ago

Is it possible with this module, to get the continues mouse-move delta? Imagine I've already reached the left screen of my windows screen but still pushing the mouse, is there a way to get that or is it only based on the actual mouse position on the screen?

pepijndevos commented 6 years ago

I believe the latter. What video games do is move your mouse to the center of the screen, and record the movement from there. But if you're writing a game, there are better ways to record the mouse. I believe for example PyGame just has a mouse class.