Files
XCEngine/docs/api/XCEngine/Input/InputModule/PumpEvents.md

21 lines
463 B
Markdown
Raw Normal View History

2026-03-26 16:45:24 +08:00
# InputModule::PumpEvents
2026-03-26 17:39:53 +08:00
主动轮询平台事件。
2026-03-26 16:45:24 +08:00
```cpp
virtual void PumpEvents() = 0;
```
2026-03-26 17:39:53 +08:00
## 行为说明
2026-03-26 16:45:24 +08:00
2026-03-26 17:39:53 +08:00
这个接口用于那些需要主动从平台消息队列拉取输入事件的后端。当前 Windows 实现提供了该方法,但方法体为空,因为现有路径主要通过外部窗口消息回调调用 `HandleMessage`
2026-03-26 16:45:24 +08:00
2026-03-26 17:39:53 +08:00
## 返回值
2026-03-26 16:45:24 +08:00
2026-03-26 17:39:53 +08:00
- 无。
2026-03-26 16:45:24 +08:00
## 相关文档
2026-03-26 17:39:53 +08:00
- [返回类型总览](InputModule.md)
- [HandleMessage](HandleMessage.md)