Python Forum
Moving mouse so that games can detect movement
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Moving mouse so that games can detect movement
#1
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.
Reply
#2
look for mouseover or hover command. It's an event that can be monitored in most GUI packages.
Have you tried pygame?
Reply
#3
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  python311 tkinter moving mouse event. janeik 1 866 Jul-01-2023, 02:00 PM
Last Post: deanhystad
  how to make the movement humanized isv 4 1,503 Jul-29-2022, 07:14 PM
Last Post: XavierPlatinum
  How to get continuous movement whilst using State Machine cjoe1993 2 1,787 Dec-10-2020, 06:36 AM
Last Post: cjoe1993
  need help on solving and movement Tankey2630 1 1,651 Jan-09-2020, 11:04 AM
Last Post: Tankey2630
  mouse 0.7.0 - mouse polling hate 125-1000hz penahuse 1 2,465 Dec-06-2019, 09:51 PM
Last Post: Larz60+
  Detect system mouse skytag 3 2,291 Sep-05-2019, 01:18 PM
Last Post: buran
  Count to movement according to the time pressed button noartist 1 2,473 Feb-27-2019, 01:33 PM
Last Post: noartist
  Moving Mouse ian 1 2,314 Dec-25-2018, 10:41 AM
Last Post: Larz60+
  movement in a zigzag in a 2d array ShakeDat53 1 2,826 Aug-17-2018, 08:22 PM
Last Post: ichabod801
  Can't change Right to left id spawning/ movement to top to bottom Kingrocket10 3 3,764 Dec-14-2017, 11:05 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020