summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-03-15 10:40:23 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-03-15 10:40:23 +0100
commit856efe4e1940e281c2ccefb8f82fa1b6f11a08b2 (patch)
tree24e35ac252b80a3f7898c25aa867069a9b1f937a
parentea05652a6af0f5e8b5437b509ca92d1e0159ff98 (diff)
parent0ff396c981ae56c64535085a74c4f05497ebc69a (diff)
downloadredot-engine-856efe4e1940e281c2ccefb8f82fa1b6f11a08b2.tar.gz
Merge pull request #89509 from timothyqiu/touch-event-position
Fix description of touch input position
-rw-r--r--doc/classes/InputEventScreenDrag.xml2
-rw-r--r--doc/classes/InputEventScreenTouch.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/InputEventScreenDrag.xml b/doc/classes/InputEventScreenDrag.xml
index bd6c26f561..e77040204c 100644
--- a/doc/classes/InputEventScreenDrag.xml
+++ b/doc/classes/InputEventScreenDrag.xml
@@ -17,7 +17,7 @@
Returns [code]true[/code] when using the eraser end of a stylus pen.
</member>
<member name="position" type="Vector2" setter="set_position" getter="get_position" default="Vector2(0, 0)">
- The drag position.
+ The drag position in the viewport the node is in, using the coordinate system of this viewport.
</member>
<member name="pressure" type="float" setter="set_pressure" getter="get_pressure" default="0.0">
Represents the pressure the user puts on the pen. Ranges from [code]0.0[/code] to [code]1.0[/code].
diff --git a/doc/classes/InputEventScreenTouch.xml b/doc/classes/InputEventScreenTouch.xml
index 9ed6fc191c..a42b122e3b 100644
--- a/doc/classes/InputEventScreenTouch.xml
+++ b/doc/classes/InputEventScreenTouch.xml
@@ -20,7 +20,7 @@
The touch index in the case of a multi-touch event. One index = one finger.
</member>
<member name="position" type="Vector2" setter="set_position" getter="get_position" default="Vector2(0, 0)">
- The touch position, in screen (global) coordinates.
+ The touch position in the viewport the node is in, using the coordinate system of this viewport.
</member>
<member name="pressed" type="bool" setter="set_pressed" getter="is_pressed" default="false">
If [code]true[/code], the touch's state is pressed. If [code]false[/code], the touch's state is released.