Click or drag to resize

InputEventMouseMotion Properties

The InputEventMouseMotion type exposes the following members.

Properties
  NameDescription
Public propertyAlt

State of the Alt modifier.

(Inherited from InputEventWithModifiers.)
Public propertyButtonMask

The mouse button mask identifier, one of or a bitwise combination of the ButtonList button masks.

(Inherited from InputEventMouse.)
Public propertyCommand

State of the Command modifier.

(Inherited from InputEventWithModifiers.)
Public propertyControl

State of the Ctrl modifier.

(Inherited from InputEventWithModifiers.)
Public propertyDevice

The event's device ID.

Note: This device ID will always be -1 for emulated mouse input from a touchscreen. This can be used to distinguish emulated mouse input from physical mouse input.

(Inherited from InputEvent.)
Public propertyDynamicObject
Gets a new DynamicGodotObject associated with this instance.
(Inherited from Object.)
Public propertyGlobalPosition

The global mouse position relative to the current Viewport when used in _GuiInput(InputEvent), otherwise is at 0,0.

(Inherited from InputEventMouse.)
Public propertyMeta

State of the Meta modifier.

(Inherited from InputEventWithModifiers.)
Public propertyNativeInstance (Inherited from Object.)
Public propertyPosition

The local mouse position relative to the Viewport. If used in _GuiInput(InputEvent), the position is relative to the current Control which is under the mouse.

(Inherited from InputEventMouse.)
Public propertyPressure

Represents the pressure the user puts on the pen. Ranges from 0.0 to 1.0.

Public propertyRelative

The mouse position relative to the previous position (position at the last frame).

Note: Since InputEventMouseMotion is only emitted when the mouse moves, the last event won't have a relative position of Vector2(0, 0) when the user stops moving the mouse.

Public propertyResourceLocalToScene

If true, the resource will be made unique in each instance of its local scene. It can thus be modified in a scene instance without impacting other instances of that same scene.

(Inherited from Resource.)
Public propertyResourceName

The name of the resource. This is an optional identifier. If ResourceName is not empty, its value will be displayed to represent the current resource in the editor inspector. For built-in scripts, the ResourceName will be displayed as the tab name in the script editor.

(Inherited from Resource.)
Public propertyResourcePath

The path to the resource. In case it has its own file, it will return its filepath. If it's tied to the scene, it will return the scene's path, followed by the resource's index.

(Inherited from Resource.)
Public propertyShift

State of the Shift modifier.

(Inherited from InputEventWithModifiers.)
Public propertySpeed

The mouse speed in pixels per second.

Public propertyTilt

Represents the angles of tilt of the pen. Positive X-coordinate value indicates a tilt to the right. Positive Y-coordinate value indicates a tilt toward the user. Ranges from -1.0 to 1.0 for both axes.

Top
See Also