Browse Source

Describe the differences between hardware and software mouse cursors

Hugo Locurcio 5 years ago
parent
commit
18af843dd0
1 changed files with 13 additions and 2 deletions
  1. 13 2
      tutorials/inputs/custom_mouse_cursor.rst

+ 13 - 2
tutorials/inputs/custom_mouse_cursor.rst

@@ -1,7 +1,7 @@
 .. _doc_custom_mouse_cursor:
 .. _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:
 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.
 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
 Using project settings
 ----------------------
 ----------------------