NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Framework/Input/InputEventBridge.cs

25 lines
745 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using PhxhSDK;
namespace Framework
{
/// <summary>
/// 项目特定的输入事件桥接实现
/// 将输入系统的事件桥接到项目的 EventManager
///
/// 设计说明:
/// - 实现 IInputEventBridge 接口
/// - 将通用的输入事件转换为项目特定的 EventManager 事件
/// - 使得 InputInterpreter 可以跨项目复用,不依赖具体的事件系统
/// </summary>
public class InputEventBridge : IInputEventBridge
{
/// <summary>
/// 当返回键Back/Escape被按下时触发
/// </summary>
public void OnBackKeyPressed()
{
EventManager.Instance.Send(EventManager.EventName.Android_Click_Back);
}
}
}