Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

InputEventFromWindow

继承: InputEvent < Resource < RefCounted < Object

派生: InputEventScreenDrag, InputEventScreenTouch, InputEventWithModifiers

基于 Viewport 的输入事件的抽象基类。

描述

InputEventFromWindow 代表明确由窗口接收的事件。包括鼠标事件、聚焦窗口中的键盘事件或触屏动作。

属性

int

window_id

0


属性说明

int window_id = 0

  • void set_window_id ( int value )

  • int get_window_id ( )

接收这个事件的 Window 的 ID。