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 映射与采用入口。
35 lines
854 B
C#
35 lines
854 B
C#
// Copyright (c) 2025-2026 GeWuYou
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
namespace GFramework.Game.Abstractions.Input;
|
|
|
|
/// <summary>
|
|
/// 描述框架级输入设备族。
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// 该枚举用于跨宿主共享“当前输入来自哪一类设备”的语义。
|
|
/// 它故意避免暴露 Godot、Unity 或平台 SDK 的原生事件类型,确保上层业务只依赖稳定的设备族判断。
|
|
/// </remarks>
|
|
public enum InputDeviceKind
|
|
{
|
|
/// <summary>
|
|
/// 未识别或尚未产生任何输入。
|
|
/// </summary>
|
|
Unknown = 0,
|
|
|
|
/// <summary>
|
|
/// 键盘与鼠标输入。
|
|
/// </summary>
|
|
KeyboardMouse = 1,
|
|
|
|
/// <summary>
|
|
/// 游戏手柄输入。
|
|
/// </summary>
|
|
Gamepad = 2,
|
|
|
|
/// <summary>
|
|
/// 触摸输入。
|
|
/// </summary>
|
|
Touch = 3
|
|
}
|