class_inputeventscreentouch.rst 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_InputEventScreenTouch:
  4. InputEventScreenTouch
  5. =====================
  6. **Category:** Built-In Types
  7. Brief Description
  8. -----------------
  9. Member Functions
  10. ----------------
  11. +--------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+
  12. | :ref:`bool<class_bool>` | :ref:`is_action<class_InputEventScreenTouch_is_action>` **(** :ref:`String<class_string>` action **)** |
  13. +--------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+
  14. | :ref:`bool<class_bool>` | :ref:`is_action_pressed<class_InputEventScreenTouch_is_action_pressed>` **(** :ref:`String<class_string>` is_action_pressed **)** |
  15. +--------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+
  16. | :ref:`bool<class_bool>` | :ref:`is_action_released<class_InputEventScreenTouch_is_action_released>` **(** :ref:`String<class_string>` is_action_released **)** |
  17. +--------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+
  18. | :ref:`bool<class_bool>` | :ref:`is_echo<class_InputEventScreenTouch_is_echo>` **(** **)** |
  19. +--------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`bool<class_bool>` | :ref:`is_pressed<class_InputEventScreenTouch_is_pressed>` **(** **)** |
  21. +--------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | void | :ref:`set_as_action<class_InputEventScreenTouch_set_as_action>` **(** :ref:`String<class_string>` action, :ref:`bool<class_bool>` pressed **)** |
  23. +--------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+
  24. Member Variables
  25. ----------------
  26. - :ref:`int<class_int>` **type**
  27. - :ref:`int<class_int>` **device**
  28. - :ref:`int<class_int>` **ID**
  29. - :ref:`int<class_int>` **index**
  30. - :ref:`float<class_float>` **x**
  31. - :ref:`float<class_float>` **y**
  32. - :ref:`Vector2<class_vector2>` **pos**
  33. - :ref:`bool<class_bool>` **pressed**
  34. Numeric Constants
  35. -----------------
  36. - **NONE** = **0**
  37. - **KEY** = **1**
  38. - **MOUSE_MOTION** = **2**
  39. - **MOUSE_BUTTON** = **3**
  40. - **JOYSTICK_MOTION** = **4**
  41. - **JOYSTICK_BUTTON** = **5**
  42. - **SCREEN_TOUCH** = **6**
  43. - **SCREEN_DRAG** = **7**
  44. - **ACTION** = **8**
  45. Member Function Description
  46. ---------------------------
  47. .. _class_InputEventScreenTouch_is_action:
  48. - :ref:`bool<class_bool>` **is_action** **(** :ref:`String<class_string>` action **)**
  49. .. _class_InputEventScreenTouch_is_action_pressed:
  50. - :ref:`bool<class_bool>` **is_action_pressed** **(** :ref:`String<class_string>` is_action_pressed **)**
  51. .. _class_InputEventScreenTouch_is_action_released:
  52. - :ref:`bool<class_bool>` **is_action_released** **(** :ref:`String<class_string>` is_action_released **)**
  53. .. _class_InputEventScreenTouch_is_echo:
  54. - :ref:`bool<class_bool>` **is_echo** **(** **)**
  55. .. _class_InputEventScreenTouch_is_pressed:
  56. - :ref:`bool<class_bool>` **is_pressed** **(** **)**
  57. .. _class_InputEventScreenTouch_set_as_action:
  58. - void **set_as_action** **(** :ref:`String<class_string>` action, :ref:`bool<class_bool>` pressed **)**