File: InputEventMouse.xml

package info (click to toggle)
godot 3.6%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 270,588 kB
  • sloc: cpp: 971,579; ansic: 617,953; xml: 80,302; asm: 17,498; cs: 14,559; python: 11,744; java: 9,681; javascript: 4,654; pascal: 1,176; sh: 896; objc: 529; makefile: 176
file content (29 lines) | stat: -rw-r--r-- 1,727 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0" encoding="UTF-8" ?>
<class name="InputEventMouse" inherits="InputEventWithModifiers" version="3.6" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
	<brief_description>
		Base input event type for mouse events.
	</brief_description>
	<description>
		Stores general mouse events information.
	</description>
	<tutorials>
		<link>$DOCS_URL/tutorials/inputs/inputevent.html</link>
	</tutorials>
	<methods>
	</methods>
	<members>
		<member name="button_mask" type="int" setter="set_button_mask" getter="get_button_mask" default="0">
			The mouse button mask identifier, one of or a bitwise combination of the [enum ButtonList] button masks.
		</member>
		<member name="global_position" type="Vector2" setter="set_global_position" getter="get_global_position" default="Vector2( 0, 0 )">
			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].
			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].
		</member>
		<member name="position" type="Vector2" setter="set_position" getter="get_position" default="Vector2( 0, 0 )">
			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].
			When received in [method Control._gui_input], returns the mouse's position in the [Control] using the local coordinate system of the [Control].
		</member>
	</members>
	<constants>
	</constants>
</class>