class_inputeventscreentouch.rst 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the InputEventScreenTouch.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_InputEventScreenTouch:
  6. InputEventScreenTouch
  7. =====================
  8. **Inherits:** :ref:`InputEvent<class_InputEvent>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. Input event type for screen touch events.
  10. (only available on mobile devices)
  11. Description
  12. -----------
  13. Stores multi-touch press/release information. Supports touch press, touch release and :ref:`index<class_InputEventScreenTouch_property_index>` for multi-touch count and order.
  14. Tutorials
  15. ---------
  16. - :doc:`../tutorials/inputs/inputevent`
  17. Properties
  18. ----------
  19. +-------------------------------+----------------------------------------------------------------+---------------------+
  20. | :ref:`int<class_int>` | :ref:`index<class_InputEventScreenTouch_property_index>` | ``0`` |
  21. +-------------------------------+----------------------------------------------------------------+---------------------+
  22. | :ref:`Vector2<class_Vector2>` | :ref:`position<class_InputEventScreenTouch_property_position>` | ``Vector2( 0, 0 )`` |
  23. +-------------------------------+----------------------------------------------------------------+---------------------+
  24. | :ref:`bool<class_bool>` | :ref:`pressed<class_InputEventScreenTouch_property_pressed>` | ``false`` |
  25. +-------------------------------+----------------------------------------------------------------+---------------------+
  26. Property Descriptions
  27. ---------------------
  28. .. _class_InputEventScreenTouch_property_index:
  29. - :ref:`int<class_int>` **index**
  30. +-----------+------------------+
  31. | *Default* | ``0`` |
  32. +-----------+------------------+
  33. | *Setter* | set_index(value) |
  34. +-----------+------------------+
  35. | *Getter* | get_index() |
  36. +-----------+------------------+
  37. The touch index in the case of a multi-touch event. One index = one finger.
  38. ----
  39. .. _class_InputEventScreenTouch_property_position:
  40. - :ref:`Vector2<class_Vector2>` **position**
  41. +-----------+---------------------+
  42. | *Default* | ``Vector2( 0, 0 )`` |
  43. +-----------+---------------------+
  44. | *Setter* | set_position(value) |
  45. +-----------+---------------------+
  46. | *Getter* | get_position() |
  47. +-----------+---------------------+
  48. The touch position.
  49. ----
  50. .. _class_InputEventScreenTouch_property_pressed:
  51. - :ref:`bool<class_bool>` **pressed**
  52. +-----------+--------------------+
  53. | *Default* | ``false`` |
  54. +-----------+--------------------+
  55. | *Setter* | set_pressed(value) |
  56. +-----------+--------------------+
  57. | *Getter* | is_pressed() |
  58. +-----------+--------------------+
  59. If ``true``, the touch's state is pressed. If ``false``, the touch's state is released.
  60. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  61. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  62. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`