mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-12 05:08:58 +08:00
- 新增输入绑定 DTO、设备上下文和 UI 语义桥接契约。 - 实现 Game 默认输入绑定存储、动作映射和 UI 分发桥接。 - 落地 Godot InputMap 适配、测试覆盖与配套文档。 - 更新 ai-plan 恢复点、worktree 映射与采用入口。
21 lines
672 B
C#
21 lines
672 B
C#
// Copyright (c) 2025-2026 GeWuYou
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
using GFramework.Game.Abstractions.UI;
|
|
|
|
namespace GFramework.Game.Abstractions.Input;
|
|
|
|
/// <summary>
|
|
/// 定义逻辑动作名到 UI 语义动作的映射规则。
|
|
/// </summary>
|
|
public interface IUiInputActionMap
|
|
{
|
|
/// <summary>
|
|
/// 尝试把逻辑动作映射为 UI 语义动作。
|
|
/// </summary>
|
|
/// <param name="actionName">逻辑动作名称。</param>
|
|
/// <param name="action">映射出的 UI 语义动作。</param>
|
|
/// <returns>如果映射成功则返回 <see langword="true" />。</returns>
|
|
bool TryMap(string actionName, out UiInputAction action);
|
|
}
|