class_inputeventscreendrag.rst 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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_InputEventScreenDrag:
  4. InputEventScreenDrag
  5. ====================
  6. **Category:** Built-In Types
  7. Brief Description
  8. -----------------
  9. Member Functions
  10. ----------------
  11. +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  12. | :ref:`bool<class_bool>` | :ref:`is_action<class_InputEventScreenDrag_is_action>` **(** :ref:`String<class_string>` action **)** |
  13. +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  14. | :ref:`bool<class_bool>` | :ref:`is_action_pressed<class_InputEventScreenDrag_is_action_pressed>` **(** :ref:`String<class_string>` is_action_pressed **)** |
  15. +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  16. | :ref:`bool<class_bool>` | :ref:`is_action_released<class_InputEventScreenDrag_is_action_released>` **(** :ref:`String<class_string>` is_action_released **)** |
  17. +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  18. | :ref:`bool<class_bool>` | :ref:`is_echo<class_InputEventScreenDrag_is_echo>` **(** **)** |
  19. +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`bool<class_bool>` | :ref:`is_pressed<class_InputEventScreenDrag_is_pressed>` **(** **)** |
  21. +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | void | :ref:`set_as_action<class_InputEventScreenDrag_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:`float<class_float>` **relative_x**
  34. - :ref:`float<class_float>` **relative_y**
  35. - :ref:`Vector2<class_vector2>` **relative_pos**
  36. - :ref:`float<class_float>` **speed_x**
  37. - :ref:`float<class_float>` **speed_y**
  38. - :ref:`Vector2<class_vector2>` **speed**
  39. Numeric Constants
  40. -----------------
  41. - **NONE** = **0**
  42. - **KEY** = **1**
  43. - **MOUSE_MOTION** = **2**
  44. - **MOUSE_BUTTON** = **3**
  45. - **JOYSTICK_MOTION** = **4**
  46. - **JOYSTICK_BUTTON** = **5**
  47. - **SCREEN_TOUCH** = **6**
  48. - **SCREEN_DRAG** = **7**
  49. - **ACTION** = **8**
  50. Member Function Description
  51. ---------------------------
  52. .. _class_InputEventScreenDrag_is_action:
  53. - :ref:`bool<class_bool>` **is_action** **(** :ref:`String<class_string>` action **)**
  54. .. _class_InputEventScreenDrag_is_action_pressed:
  55. - :ref:`bool<class_bool>` **is_action_pressed** **(** :ref:`String<class_string>` is_action_pressed **)**
  56. .. _class_InputEventScreenDrag_is_action_released:
  57. - :ref:`bool<class_bool>` **is_action_released** **(** :ref:`String<class_string>` is_action_released **)**
  58. .. _class_InputEventScreenDrag_is_echo:
  59. - :ref:`bool<class_bool>` **is_echo** **(** **)**
  60. .. _class_InputEventScreenDrag_is_pressed:
  61. - :ref:`bool<class_bool>` **is_pressed** **(** **)**
  62. .. _class_InputEventScreenDrag_set_as_action:
  63. - void **set_as_action** **(** :ref:`String<class_string>` action, :ref:`bool<class_bool>` pressed **)**