docs: sync api and planning docs
This commit is contained in:
@@ -12,10 +12,11 @@ void ProcessKeyUp(KeyCode key, bool alt, bool ctrl, bool shift, bool meta);
|
||||
|
||||
- 如果未初始化或键索引越界,直接返回
|
||||
- 把 `m_keyDown[index]` 设为 `false`
|
||||
- 把 `m_keyUpThisFrame[index]` 设为 `true`
|
||||
- 构造 `KeyEvent`,类型固定为 `KeyEvent::Up`
|
||||
- 同步触发 `m_onKeyEvent`
|
||||
|
||||
当前没有单独的 “key up this frame” 标志位;抬起后,`IsKeyUp` 会立即通过 `!IsKeyDown(key)` 成立。
|
||||
因此这条路径既会让 [IsKeyUp](IsKeyUp.md) 立刻成立,也会为 [IsKeyReleased](IsKeyReleased.md) 写入本帧释放边沿。
|
||||
|
||||
## 参数
|
||||
|
||||
@@ -33,4 +34,5 @@ void ProcessKeyUp(KeyCode key, bool alt, bool ctrl, bool shift, bool meta);
|
||||
|
||||
- [返回类型总览](InputManager.md)
|
||||
- [ProcessKeyDown](ProcessKeyDown.md)
|
||||
- [IsKeyReleased](IsKeyReleased.md)
|
||||
- [OnKeyEvent](OnKeyEvent.md)
|
||||
|
||||
Reference in New Issue
Block a user