docs: rebuild Input API content
This commit is contained in:
@@ -1,30 +1,20 @@
|
||||
# InputManager::OnTextInput
|
||||
|
||||
公开方法,详见头文件声明。
|
||||
获取文本输入事件通道。
|
||||
|
||||
```cpp
|
||||
Core::Event<const TextInputEvent&>& OnTextInput();
|
||||
```
|
||||
|
||||
该方法声明于 `XCEngine/Input/InputManager.h`,当前页面用于固定 `InputManager` 类目录下的方法级 canonical 路径。
|
||||
## 行为说明
|
||||
|
||||
**参数:** 无。
|
||||
当前事件会在 [ProcessTextInput](ProcessTextInput.md) 中同步触发。它适合接 UI 输入框、控制台和编辑器文本输入,而不是通用按键绑定逻辑。
|
||||
|
||||
**返回:** `Core::Event<const TextInputEvent&>&` - 返回值语义详见头文件声明。
|
||||
## 返回值
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
#include <XCEngine/Input/InputManager.h>
|
||||
|
||||
void Example() {
|
||||
XCEngine::Input::InputManager object;
|
||||
// 根据上下文补齐参数后调用 InputManager::OnTextInput(...)。
|
||||
(void)object;
|
||||
}
|
||||
```
|
||||
- `Core::Event<const TextInputEvent&>&` - 文本输入事件通道。
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [返回类总览](InputManager.md)
|
||||
- [返回模块目录](../Input.md)
|
||||
- [返回类型总览](InputManager.md)
|
||||
- [ProcessTextInput](ProcessTextInput.md)
|
||||
|
||||
Reference in New Issue
Block a user