| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="InputEventMouse" inherits="InputEventWithModifiers" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | Base input event type for mouse events. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | Stores general information about mouse events. |
| 8 | </description> |
| 9 | <tutorials> |
| 10 | <link title="Using InputEvent">$DOCS_URL/tutorials/inputs/inputevent.html</link> |
| 11 | </tutorials> |
| 12 | <members> |
| 13 | <member name="button_mask" type="int" setter="set_button_mask" getter="get_button_mask" enum="MouseButtonMask" is_bitfield="true" default="0"> |
| 14 | The mouse button mask identifier, one of or a bitwise combination of the [enum MouseButton] button masks. |
| 15 | </member> |
| 16 | <member name="global_position" type="Vector2" setter="set_global_position" getter="get_global_position" default="Vector2(0, 0)"> |
| 17 | When received in [method Node._input] or [method Node._unhandled_input], returns the mouse's position in the root [Viewport] using the coordinate system of the root [Viewport]. |
| 18 | When received in [method Control._gui_input], returns the mouse's position in the [CanvasLayer] that the [Control] is in using the coordinate system of the [CanvasLayer]. |
| 19 | </member> |
| 20 | <member name="position" type="Vector2" setter="set_position" getter="get_position" default="Vector2(0, 0)"> |
| 21 | When received in [method Node._input] or [method Node._unhandled_input], returns the mouse's position in the [Viewport] this [Node] is in using the coordinate system of this [Viewport]. |
| 22 | When received in [method Control._gui_input], returns the mouse's position in the [Control] using the local coordinate system of the [Control]. |
| 23 | </member> |
| 24 | </members> |
| 25 | </class> |