InputEventMouse

Inherits: InputEventWithModifiers < InputEvent < Resource < Reference < Object

继承人: InputEventMouseButtonInputEventMouseMotion

类别: 核心

简要说明

鼠标事件的基本输入事件类型。

属性

int

button_mask

0

Vector2

global_position

矢量2(0,0)

Vector2

position

矢量2(0,0)

描述

存储常规鼠标事件信息。

教程

属性描述

  • int button_mask

违约

0

设定器

设置按钮掩码(值)

吸气剂

获取按钮掩码()。

鼠标按钮掩码标识符,是 ButtonList 按钮屏蔽。

违约

矢量2(0,0)

设定器

设置全局位置(值)

吸气剂

获取全局位置()

相对于当前的全局鼠标位置 Viewport 当用于 Control._gui_input ,否则为0,0。

违约

矢量2(0,0)

设定器

设置位置(值)

吸气剂

获取位置()

相对于 Viewport . 如果用于 Control._gui_input ,位置相对于当前 Control 在鼠标下面。