Python Forum

Full Version: Moving mouse so that games can detect movement
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I made some code to stimulate computer input from input on a Xbox controller. Everything works fine except that the game I was using it on doesn't detect movement in the cursor's position. I tried pynput and win32api. Are there any other ways to do it that might enable the game to detect movement of the mouse? Thanks in advance for help.
look for mouseover or hover command. It's an event that can be monitored in most GUI packages.
Have you tried pygame?
I was trying to use pygame but it didn't seem to be properly detecting input from the controller. I'll type up some code and test it again.

I must've done something wrong before because it seems to be working just fine now. I'll test it out with pygame and see if it works then.