S
S
Soldier Programmer2019-03-22 18:34:36
Python
Soldier Programmer, 2019-03-22 18:34:36

Pygame implementation of mouse cursor movement?

I draw the mouse cursor in my project and set the coordinates, but the cursor cannot be moved.
Help someone, it's not difficult how to implement a normal mouse movement so that I can move the cursor as I want.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Shitskov, 2019-03-22
@FlampteR

Try to understand this example on setting custom cursors https://github.com/Mekire/pygame-samples/tree/mast...

T
Ternick, 2019-03-22
@Ternick

If I'm not mistaken, then smooth cursor movement cannot be done, but in general the cursor can be moved like this:
To install either:
Code:

from pyautogui import moveTo
moveTo(675, 420)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question