GFramework/GFramework.Godot/input/GodotInputPhase.cs
GwWuYou 028ece27db ```
refactor(input): 重构Godot输入模块为抽象基类并优化输入处理流程

将 `GodotInputModule` 重命名为 `AbstractGodotInputModule` 并改为抽象类,
以便支持更灵活的输入翻译器注册机制。引入 `GodotInputPhase` 枚举和
`GodotRawInput` 结构体以区分输入处理的不同阶段(捕获与冒泡)。
同时修改 `GodotInputTranslator` 仅在Bubble阶段生成游戏事件,提升输入处理精度。
```
2025-12-21 16:52:36 +08:00

20 lines
635 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace GFramework.Godot.input;
/// <summary>
/// 输入处理阶段枚举用于区分Godot引擎中不同的输入处理阶段
/// </summary>
public enum GodotInputPhase
{
/// <summary>
/// 捕获阶段在_Input方法中处理输入事件
/// 这是输入事件的第一个处理阶段,事件会沿着节点树向下传递
/// </summary>
Capture, // _Input
/// <summary>
/// 冒泡阶段在_UnhandledInput方法中处理输入事件
/// 这是输入事件的第二个处理阶段,未被处理的事件会向上冒泡传递
/// </summary>
Bubble // _UnhandledInput
}