Skip to content

Commit

Permalink
Expand description for warp_mouse_position method
Browse files Browse the repository at this point in the history
Add more detail to the description for the warp_mouse_position method, clarifying that the vector is in screen coordinates and relative to an origin at the top of the game window.

(cherry picked from commit 3dc1fad)
  • Loading branch information
TechnicalSoup authored and akien-mga committed Feb 11, 2022
1 parent 6bcb24f commit 49059e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/classes/Input.xml
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,8 @@
<return type="void" />
<argument index="0" name="to" type="Vector2" />
<description>
Sets the mouse position to the specified vector.
Sets the mouse position to the specified vector, provided in pixels and relative to an origin at the upper left corner of the game window.
Mouse position is clipped to the limits of the screen resolution, or to the limits of the game window if [enum MouseMode] is set to [constant MOUSE_MODE_CONFINED].
</description>
</method>
</methods>
Expand Down

0 comments on commit 49059e3

Please sign in to comment.