InputEventMouseButton Properties |
The InputEventMouseButton type exposes the following members.
Name | Description | |
---|---|---|
Alt | State of the Alt modifier. | |
ButtonIndex | The mouse button identifier, one of the ButtonList button or button wheel constants. | |
ButtonMask | The mouse button mask identifier, one of or a bitwise combination of the ButtonList button masks. | |
Command | State of the Command modifier. | |
Control | State of the Ctrl modifier. | |
Device | 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. | |
Doubleclick | If true, the mouse button's state is a double-click. | |
DynamicObject |
Gets a new DynamicGodotObject associated with this instance.
(Inherited from Object.) | |
Factor | The amount (or delta) of the event. When used for high-precision scroll events, this indicates the scroll amount (vertical or horizontal). This is only supported on some platforms; the reported sensitivity varies depending on the platform. May be 0 if not supported. | |
GlobalPosition | The global mouse position relative to the current Viewport when used in _GuiInput(InputEvent), otherwise is at 0,0. | |
Meta | State of the Meta modifier. | |
NativeInstance | (Inherited from Object.) | |
Position | 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. | |
Pressed | If true, the mouse button's state is pressed. If false, the mouse button's state is released. | |
ResourceLocalToScene | 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. | |
ResourceName | 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. | |
ResourcePath | 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. | |
Shift | State of the Shift modifier. |