mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 18:29:11 +00:00
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:
@@ -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
|
||||
----------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user