docs: rebuild Input API content

This commit is contained in:
2026-03-26 17:39:53 +08:00
parent ec4edb2689
commit ce2eee32e3
54 changed files with 1108 additions and 941 deletions

View File

@@ -1,31 +1,29 @@
# InputManager::IsKeyUp
查询当前状态。
查询一个键当前是否处于抬起状态。
```cpp
bool IsKeyUp(KeyCode key) const;
```
该方法声明于 `XCEngine/Input/InputManager.h`,当前页面用于固定 `InputManager` 类目录下的方法级 canonical 路径。
## 行为说明
**参数:**
- `key` - 参数语义详见头文件声明。
当前实现有一个很宽松的定义:
**返回:** `bool` - 返回值语义详见头文件声明。
- 如果管理器未初始化,返回 `true`
- 否则返回 `!IsKeyDown(key)`
**示例:**
因此对于未初始化或未识别的键,它都会被视为 “Up”。
```cpp
#include <XCEngine/Input/InputManager.h>
## 参数
void Example() {
XCEngine::Input::InputManager object;
// 根据上下文补齐参数后调用 InputManager::IsKeyUp(...)。
(void)object;
}
```
- `key` - 要查询的键。
## 返回值
- `bool` - 当前是否抬起。
## 相关文档
- [返回类总览](InputManager.md)
- [返回模块目录](../Input.md)
- [返回类总览](InputManager.md)
- [IsKeyDown](IsKeyDown.md)