Python Forum
Moving mouse so that games can detect movement - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Moving mouse so that games can detect movement (/thread-27474.html)



Moving mouse so that games can detect movement - SheeppOSU - Jun-08-2020

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.


RE: Moving mouse so that games can detect movement - Larz60+ - Jun-08-2020

look for mouseover or hover command. It's an event that can be monitored in most GUI packages.
Have you tried pygame?


RE: Moving mouse so that games can detect movement - SheeppOSU - Jun-09-2020

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.