diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-10-18 23:00:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-18 23:00:56 +0200 |
commit | f4d9749e230130fd9b462c8eb745b6d01a3accf1 (patch) | |
tree | 834495594e6371b3f8cb9d149d502a6d51887cea /doc/classes | |
parent | 5bb3dbbedd4f32974eef36ffc83bbe29abb65ab1 (diff) | |
parent | 9b38e04fff3e05a57dfa166b089ff68d05c5f2d8 (diff) |
Merge pull request #53741 from DmitriySalnikov/exposed_sensor_setters_master
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/Input.xml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/doc/classes/Input.xml b/doc/classes/Input.xml index 00ead31115..88e4a67615 100644 --- a/doc/classes/Input.xml +++ b/doc/classes/Input.xml @@ -269,6 +269,14 @@ Removes all mappings from the internal database that match the given GUID. </description> </method> + <method name="set_accelerometer"> + <return type="void" /> + <argument index="0" name="value" type="Vector3" /> + <description> + Sets the acceleration value of the accelerometer sensor. Can be used for debugging on devices without a hardware sensor, for example in an editor on a PC. + [b]Note:[/b] This value can be immediately overwritten by the hardware sensor value on Android and iOS. + </description> + </method> <method name="set_custom_mouse_cursor"> <return type="void" /> <argument index="0" name="image" type="Resource" /> @@ -291,6 +299,30 @@ [b]Note:[/b] This method generates an [InputEventMouseMotion] to update cursor immediately. </description> </method> + <method name="set_gravity"> + <return type="void" /> + <argument index="0" name="value" type="Vector3" /> + <description> + Sets the gravity value of the accelerometer sensor. Can be used for debugging on devices without a hardware sensor, for example in an editor on a PC. + [b]Note:[/b] This value can be immediately overwritten by the hardware sensor value on Android and iOS. + </description> + </method> + <method name="set_gyroscope"> + <return type="void" /> + <argument index="0" name="value" type="Vector3" /> + <description> + Sets the value of the rotation rate of the gyroscope sensor. Can be used for debugging on devices without a hardware sensor, for example in an editor on a PC. + [b]Note:[/b] This value can be immediately overwritten by the hardware sensor value on Android and iOS. + </description> + </method> + <method name="set_magnetometer"> + <return type="void" /> + <argument index="0" name="value" type="Vector3" /> + <description> + Sets the value of the magnetic field of the magnetometer sensor. Can be used for debugging on devices without a hardware sensor, for example in an editor on a PC. + [b]Note:[/b] This value can be immediately overwritten by the hardware sensor value on Android and iOS. + </description> + </method> <method name="set_mouse_mode"> <return type="void" /> <argument index="0" name="mode" type="int" enum="Input.MouseMode" /> |