Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
InputEventShortcut
继承: InputEvent < Resource < RefCounted < Object
代表触发的键盘快捷键 Shortcut。
描述
InputEventShortcut 是一种可以在 Node._input()、Node._shortcut_input()、Node._unhandled_input() 中收到的特殊事件。通常由编辑器的“命令面板”发送,用于触发动作,但也可以使用 Viewport.push_input() 手动发送。
属性
属性说明
这个事件代表的 Shortcut。它的 Shortcut.matches_event() 方法对这个事件始终返回 true
。