25 lines
745 B
C#
25 lines
745 B
C#
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);
|
||
}
|
||
}
|
||
}
|