Skip to content

Commit 5aebeac

Browse files
authored
Merge pull request #11209 from godotengine/classref/sync-0c51ede
classref: Sync with current master branch (0c51ede)
2 parents 2bd6c9d + 2f7bad6 commit 5aebeac

17 files changed

+316
-25
lines changed

classes/class_diraccess.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ Use :ref:`get_directories()<class_DirAccess_method_get_directories>` if you want
446446

447447
On Windows, returns the number of drives (partitions) mounted on the current filesystem.
448448

449-
On macOS, returns the number of mounted volumes.
449+
On macOS and Android, returns the number of mounted volumes.
450450

451451
On Linux, returns the number of mounted volumes and GTK 3 bookmarks.
452452

@@ -468,6 +468,8 @@ On macOS, returns the path to the mounted volume passed as an argument.
468468

469469
On Linux, returns the path to the mounted volume or GTK 3 bookmark passed as an argument.
470470

471+
On Android (API level 30+), returns the path to the mounted volume as an argument.
472+
471473
On other platforms, or if the requested drive does not exist, the method returns an empty String.
472474

473475
.. rst-class:: classref-item-separator

classes/class_editorexportplatformandroid.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ Properties
5858
+---------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
5959
| :ref:`String<class_String>` | :ref:`gradle_build/android_source_template<class_EditorExportPlatformAndroid_property_gradle_build/android_source_template>` |
6060
+---------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
61+
| :ref:`bool<class_bool>` | :ref:`gradle_build/compress_native_libraries<class_EditorExportPlatformAndroid_property_gradle_build/compress_native_libraries>` |
62+
+---------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
6163
| :ref:`Dictionary<class_Dictionary>` | :ref:`gradle_build/custom_theme_attributes<class_EditorExportPlatformAndroid_property_gradle_build/custom_theme_attributes>` |
6264
+---------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
6365
| :ref:`int<class_int>` | :ref:`gradle_build/export_format<class_EditorExportPlatformAndroid_property_gradle_build/export_format>` |
@@ -604,6 +606,22 @@ Path to a ZIP file holding the source for the export template used in a Gradle b
604606

605607
----
606608

609+
.. _class_EditorExportPlatformAndroid_property_gradle_build/compress_native_libraries:
610+
611+
.. rst-class:: classref-property
612+
613+
:ref:`bool<class_bool>` **gradle_build/compress_native_libraries** :ref:`🔗<class_EditorExportPlatformAndroid_property_gradle_build/compress_native_libraries>`
614+
615+
If ``true``, native libraries are compressed when performing a Gradle build.
616+
617+
\ **Note:** While enabling compression can reduce the size of the binary, it may result in slower application startup because the native libraries must be extracted before use, rather than being loaded directly.
618+
619+
If you're distributing your app via the Play Store, it's generally recommended to keep this option ``false``, see `official documentation <https://developer.android.com/build/releases/past-releases/agp-3-6-0-release-notes#extractNativeLibs>`__.
620+
621+
.. rst-class:: classref-item-separator
622+
623+
----
624+
607625
.. _class_EditorExportPlatformAndroid_property_gradle_build/custom_theme_attributes:
608626

609627
.. rst-class:: classref-property

classes/class_editorexportplatformios.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,9 @@ Can be overridden with the environment variable ``GODOT_APPLE_PLATFORM_PROVISION
725725

726726
:ref:`String<class_String>` **application/short_version** :ref:`🔗<class_EditorExportPlatformIOS_property_application/short_version>`
727727

728-
Application version visible to the user, can only contain numeric characters (``0-9``) and periods (``.``). Falls back to :ref:`ProjectSettings.application/config/version<class_ProjectSettings_property_application/config/version>` if left empty.
728+
Application version visible to the user. Can only contain numeric characters (``0-9``) and periods (``.``). Falls back to :ref:`ProjectSettings.application/config/version<class_ProjectSettings_property_application/config/version>` if left empty.
729+
730+
\ **Note:** This value is used for the *Identity > Version* value in the generated Xcode project.
729731

730732
.. rst-class:: classref-item-separator
731733

@@ -761,7 +763,9 @@ Supported device family.
761763

762764
:ref:`String<class_String>` **application/version** :ref:`🔗<class_EditorExportPlatformIOS_property_application/version>`
763765

764-
Machine-readable application version, in the ``major.minor.patch`` format, can only contain numeric characters (``0-9``) and periods (``.``). This must be incremented on every new release pushed to the App Store.
766+
Machine-readable application version in the ``major.minor.patch`` format. Can only contain numeric characters (``0-9``) and periods (``.``). This must be incremented with every new release pushed to the App Store. Falls back to :ref:`ProjectSettings.application/config/version<class_ProjectSettings_property_application/config/version>` if left empty.
767+
768+
\ **Note:** This value is used for the *Identity > Build* value in the generated Xcode project.
765769

766770
.. rst-class:: classref-item-separator
767771

classes/class_editorexportplatformmacos.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,9 @@ Minimum version of macOS required for this application to run on Intel Macs, in
645645

646646
:ref:`String<class_String>` **application/short_version** :ref:`🔗<class_EditorExportPlatformMacOS_property_application/short_version>`
647647

648-
Application version visible to the user, can only contain numeric characters (``0-9``) and periods (``.``). Falls back to :ref:`ProjectSettings.application/config/version<class_ProjectSettings_property_application/config/version>` if left empty.
648+
Application version visible to the user. Can only contain numeric characters (``0-9``) and periods (``.``). Falls back to :ref:`ProjectSettings.application/config/version<class_ProjectSettings_property_application/config/version>` if left empty.
649+
650+
\ **Note:** This value is used for the *Identity > Version* value in the generated Xcode project.
649651

650652
.. rst-class:: classref-item-separator
651653

@@ -669,7 +671,9 @@ A four-character creator code that is specific to the bundle. Optional.
669671

670672
:ref:`String<class_String>` **application/version** :ref:`🔗<class_EditorExportPlatformMacOS_property_application/version>`
671673

672-
Machine-readable application version, in the ``major.minor.patch`` format, can only contain numeric characters (``0-9``) and periods (``.``). This must be incremented on every new release pushed to the App Store.
674+
Machine-readable application version in the ``major.minor.patch`` format. Can only contain numeric characters (``0-9``) and periods (``.``). This must be incremented with every new release pushed to the App Store. Falls back to :ref:`ProjectSettings.application/config/version<class_ProjectSettings_property_application/config/version>` if left empty.
675+
676+
\ **Note:** This value is used for the *Identity > Build* value in the generated Xcode project.
673677

674678
.. rst-class:: classref-item-separator
675679

classes/class_editorexportplatformvisionos.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,9 @@ Can be overridden with the environment variable ``GODOT_APPLE_PLATFORM_PROVISION
619619

620620
:ref:`String<class_String>` **application/short_version** :ref:`🔗<class_EditorExportPlatformVisionOS_property_application/short_version>`
621621

622-
Application version visible to the user, can only contain numeric characters (``0-9``) and periods (``.``). Falls back to :ref:`ProjectSettings.application/config/version<class_ProjectSettings_property_application/config/version>` if left empty.
622+
Application version visible to the user. Can only contain numeric characters (``0-9``) and periods (``.``). Falls back to :ref:`ProjectSettings.application/config/version<class_ProjectSettings_property_application/config/version>` if left empty.
623+
624+
\ **Note:** This value is used for the *Identity > Version* value in the generated Xcode project.
623625

624626
.. rst-class:: classref-item-separator
625627

@@ -643,7 +645,9 @@ A four-character creator code that is specific to the bundle. Optional.
643645

644646
:ref:`String<class_String>` **application/version** :ref:`🔗<class_EditorExportPlatformVisionOS_property_application/version>`
645647

646-
Machine-readable application version, in the ``major.minor.patch`` format, can only contain numeric characters (``0-9``) and periods (``.``). This must be incremented on every new release pushed to the App Store.
648+
Machine-readable application version in the ``major.minor.patch`` format. Can only contain numeric characters (``0-9``) and periods (``.``). This must be incremented with every new release pushed to the App Store. Falls back to :ref:`ProjectSettings.application/config/version<class_ProjectSettings_property_application/config/version>` if left empty.
649+
650+
\ **Note:** This value is used for the *Identity > Build* value in the generated Xcode project.
647651

648652
.. rst-class:: classref-item-separator
649653

classes/class_input.rst

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,12 @@ Methods
109109
+-------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
110110
| :ref:`bool<class_bool>` | :ref:`is_action_just_pressed<class_Input_method_is_action_just_pressed>`\ (\ action\: :ref:`StringName<class_StringName>`, exact_match\: :ref:`bool<class_bool>` = false\ ) |const| |
111111
+-------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
112+
| :ref:`bool<class_bool>` | :ref:`is_action_just_pressed_by_event<class_Input_method_is_action_just_pressed_by_event>`\ (\ action\: :ref:`StringName<class_StringName>`, event\: :ref:`InputEvent<class_InputEvent>`, exact_match\: :ref:`bool<class_bool>` = false\ ) |const| |
113+
+-------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
112114
| :ref:`bool<class_bool>` | :ref:`is_action_just_released<class_Input_method_is_action_just_released>`\ (\ action\: :ref:`StringName<class_StringName>`, exact_match\: :ref:`bool<class_bool>` = false\ ) |const| |
113115
+-------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
116+
| :ref:`bool<class_bool>` | :ref:`is_action_just_released_by_event<class_Input_method_is_action_just_released_by_event>`\ (\ action\: :ref:`StringName<class_StringName>`, event\: :ref:`InputEvent<class_InputEvent>`, exact_match\: :ref:`bool<class_bool>` = false\ ) |const| |
117+
+-------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
114118
| :ref:`bool<class_bool>` | :ref:`is_action_pressed<class_Input_method_is_action_pressed>`\ (\ action\: :ref:`StringName<class_StringName>`, exact_match\: :ref:`bool<class_bool>` = false\ ) |const| |
115119
+-------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
116120
| :ref:`bool<class_bool>` | :ref:`is_anything_pressed<class_Input_method_is_anything_pressed>`\ (\ ) |const| |
@@ -818,7 +822,27 @@ If ``exact_match`` is ``false``, it ignores additional input modifiers for :ref:
818822

819823
\ **Note:** Due to keyboard ghosting, :ref:`is_action_just_pressed()<class_Input_method_is_action_just_pressed>` may return ``false`` even if one of the action's keys is pressed. See `Input examples <../tutorials/inputs/input_examples.html#keyboard-events>`__ in the documentation for more information.
820824

821-
\ **Note:** During input handling (e.g. :ref:`Node._input()<class_Node_private_method__input>`), use :ref:`InputEvent.is_action_pressed()<class_InputEvent_method_is_action_pressed>` instead to query the action state of the current event.
825+
\ **Note:** During input handling (e.g. :ref:`Node._input()<class_Node_private_method__input>`), use :ref:`InputEvent.is_action_pressed()<class_InputEvent_method_is_action_pressed>` instead to query the action state of the current event. See also :ref:`is_action_just_pressed_by_event()<class_Input_method_is_action_just_pressed_by_event>`.
826+
827+
.. rst-class:: classref-item-separator
828+
829+
----
830+
831+
.. _class_Input_method_is_action_just_pressed_by_event:
832+
833+
.. rst-class:: classref-method
834+
835+
:ref:`bool<class_bool>` **is_action_just_pressed_by_event**\ (\ action\: :ref:`StringName<class_StringName>`, event\: :ref:`InputEvent<class_InputEvent>`, exact_match\: :ref:`bool<class_bool>` = false\ ) |const| :ref:`🔗<class_Input_method_is_action_just_pressed_by_event>`
836+
837+
Returns ``true`` when the user has *started* pressing the action event in the current frame or physics tick, and the first event that triggered action press in the current frame/physics tick was ``event``. It will only return ``true`` on the frame or tick that the user pressed down the button.
838+
839+
This is useful for code that needs to run only once when an action is pressed, and the action is processed during input handling (e.g. :ref:`Node._input()<class_Node_private_method__input>`).
840+
841+
If ``exact_match`` is ``false``, it ignores additional input modifiers for :ref:`InputEventKey<class_InputEventKey>` and :ref:`InputEventMouseButton<class_InputEventMouseButton>` events, and the direction for :ref:`InputEventJoypadMotion<class_InputEventJoypadMotion>` events.
842+
843+
\ **Note:** Returning ``true`` does not imply that the action is *still* pressed. An action can be pressed and released again rapidly, and ``true`` will still be returned so as not to miss input.
844+
845+
\ **Note:** Due to keyboard ghosting, :ref:`is_action_just_pressed()<class_Input_method_is_action_just_pressed>` may return ``false`` even if one of the action's keys is pressed. See `Input examples <../tutorials/inputs/input_examples.html#keyboard-events>`__ in the documentation for more information.
822846

823847
.. rst-class:: classref-item-separator
824848

@@ -836,7 +860,25 @@ Returns ``true`` when the user *stops* pressing the action event in the current
836860

837861
If ``exact_match`` is ``false``, it ignores additional input modifiers for :ref:`InputEventKey<class_InputEventKey>` and :ref:`InputEventMouseButton<class_InputEventMouseButton>` events, and the direction for :ref:`InputEventJoypadMotion<class_InputEventJoypadMotion>` events.
838862

839-
\ **Note:** During input handling (e.g. :ref:`Node._input()<class_Node_private_method__input>`), use :ref:`InputEvent.is_action_released()<class_InputEvent_method_is_action_released>` instead to query the action state of the current event.
863+
\ **Note:** During input handling (e.g. :ref:`Node._input()<class_Node_private_method__input>`), use :ref:`InputEvent.is_action_released()<class_InputEvent_method_is_action_released>` instead to query the action state of the current event. See also :ref:`is_action_just_released_by_event()<class_Input_method_is_action_just_released_by_event>`.
864+
865+
.. rst-class:: classref-item-separator
866+
867+
----
868+
869+
.. _class_Input_method_is_action_just_released_by_event:
870+
871+
.. rst-class:: classref-method
872+
873+
:ref:`bool<class_bool>` **is_action_just_released_by_event**\ (\ action\: :ref:`StringName<class_StringName>`, event\: :ref:`InputEvent<class_InputEvent>`, exact_match\: :ref:`bool<class_bool>` = false\ ) |const| :ref:`🔗<class_Input_method_is_action_just_released_by_event>`
874+
875+
Returns ``true`` when the user *stops* pressing the action event in the current frame or physics tick, and the first event that triggered action release in the current frame/physics tick was ``event``. It will only return ``true`` on the frame or tick that the user releases the button.
876+
877+
This is useful when an action is processed during input handling (e.g. :ref:`Node._input()<class_Node_private_method__input>`).
878+
879+
\ **Note:** Returning ``true`` does not imply that the action is *still* not pressed. An action can be released and pressed again rapidly, and ``true`` will still be returned so as not to miss input.
880+
881+
If ``exact_match`` is ``false``, it ignores additional input modifiers for :ref:`InputEventKey<class_InputEventKey>` and :ref:`InputEventMouseButton<class_InputEventMouseButton>` events, and the direction for :ref:`InputEventJoypadMotion<class_InputEventJoypadMotion>` events.
840882

841883
.. rst-class:: classref-item-separator
842884

classes/class_inputevent.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ If ``exact_match`` is ``false``, it ignores additional input modifiers for :ref:
224224

225225
:ref:`bool<class_bool>` **is_action_type**\ (\ ) |const| :ref:`🔗<class_InputEvent_method_is_action_type>`
226226

227-
Returns ``true`` if this input event's type is one that can be assigned to an input action.
227+
Returns ``true`` if this input event's type is one that can be assigned to an input action: :ref:`InputEventKey<class_InputEventKey>`, :ref:`InputEventMouseButton<class_InputEventMouseButton>`, :ref:`InputEventJoypadButton<class_InputEventJoypadButton>`, :ref:`InputEventJoypadMotion<class_InputEventJoypadMotion>`, :ref:`InputEventAction<class_InputEventAction>`. Returns ``false`` for all other input event types.
228228

229229
.. rst-class:: classref-item-separator
230230

0 commit comments

Comments
 (0)