U
U
userpyy2020-06-10 21:42:39
Python
userpyy, 2020-06-10 21:42:39

How to emulate a mouse in a game with "Direct Input" enabled?

Direct input:

Pyautogui doesn't work for me, because it doesn't work with direct mouse input, I tried to add the pydirectinput library - I didn't notice a difference, it doesn't work either.

Sharp movement along coordinates in 3d fps games:

And here Pyautogui does not help me, it directs a little bit (by 5 - 10px) to the coordinates that I specified, and not immediately (sharply), but if you use emulation in normal applications, then everything works how to.

QUESTION: are there any ways that could solve at least one of these problems?

ps I turned off all restrictions:

pyautogui.MINIMUM_DURATION = 0
pyautogui.MINIMUM_SLEEP = 0
pyautogui.PAUSE = 0
pyautogui.FAILSAFE = False

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question