跳转至

ShortCut

继承

Resource

简要描述

绑定输入的快捷方式。

描述

绑定输入的快捷方式。

快捷方式通常用于与InputEvent中的Control元素进行交互。

成员

类型 属性名 默认值
InputEvent shortcut

方法

返回值类型 方法名称
String get_as_text() const
bool is_shortcut(event: InputEvent) const
bool is_valid() const

常量

成员说明

  • InputEvent shortcut
setter set_shortcut(value)
getter get_shortcut

方法说明

  • get_as_text get_as_text() const

返回快捷方式的InputEvent作为String


  • is_shortcut is_shortcut(event: InputEvent) const

如果快捷方式的InputEvent等于event,则返回true


  • is_valid is_valid() const

如果true,则此快捷方式有效。