Merge pull request #3615 from Calinou/custom-mouse-cursor-hardware-vs-software

Describe the differences between hardware and software mouse cursors
This commit is contained in:
Max Hilbrunner
2020-05-31 14:31:34 +02:00
committed by GitHub
+13 -2
View File
@@ -1,7 +1,7 @@
.. _doc_custom_mouse_cursor:
Customizing mouse cursor
========================
Customizing the mouse cursor
============================
You might want to change the appearance of the mouse cursor in your game in order to suit the overall design. There are two ways to customize the mouse cursor:
@@ -10,6 +10,17 @@ You might want to change the appearance of the mouse cursor in your game in orde
Using project settings is a simpler (but more limited) way to customize the mouse cursor. The second way is more customizable, but involves scripting.
.. note::
You could display a "software" mouse cursor by hiding the mouse cursor and
moving a Sprite to the cursor position in a ``_process`` method, but this
will add at least one frame of latency compared to an "hardware" mouse
cursor. Therefore, it's recommended to use the approach described here
whenever possible.
If you have to use the "software" approach, consider adding an extrapolation step
to better display the actual mouse input.
Using project settings
----------------------