Files
XCEngine/docs/api/XCEngine/Input/InputAxis/GetPositiveKey.md

468 B

InputAxis::GetPositiveKey

读取轴的正方向按键。

KeyCode GetPositiveKey() const;

行为说明

当前返回内部保存的 m_positiveKey。如果返回 KeyCode::None,表示该轴当前没有配置正方向键。

返回值

  • KeyCode - 正方向按键。

示例

XCEngine::Input::KeyCode positive = axis.GetPositiveKey();

相关文档